Пример #1
0
void Interface::Basic::EventContinueMovement(void)
{
    Heroes* hero = GetFocusHeroes();

    if(hero && hero->GetPath().isValid())
	hero->SetMove(! hero->isEnableMove());
}
Пример #2
0
int Interface::Basic::EventExit(void)
{
    Heroes* hero = GetFocusHeroes();

    // stop hero
    if(hero && hero->isEnableMove())
	hero->SetMove(false);
    else
    if(Dialog::YES & Dialog::Message("", _("Are you sure you want to quit?"), Font::BIG, Dialog::YES|Dialog::NO))
	return Game::QUITGAME;

    return Game::CANCEL;
}