void Interface::Basic::EventContinueMovement(void) { Heroes* hero = GetFocusHeroes(); if(hero && hero->GetPath().isValid()) hero->SetMove(! hero->isEnableMove()); }
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; }