CvPlayer::updateTimers()
- Defined in
- CvPlayer.cpp, line 5258
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_updateTimers
Hooks
static bool BeforeCvPlayer_updateTimers(CvPlayer* self);static void AfterCvPlayer_updateTimers(CvPlayer* self);static void ReplaceCvPlayer_updateTimers(void (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_updateTimers>(host, &BeforeCvPlayer_updateTimers);CivRegisterAfter<CivHooks::CvPlayer_updateTimers>(host, &AfterCvPlayer_updateTimers);CivRegisterReplace<CivHooks::CvPlayer_updateTimers>(host, &ReplaceCvPlayer_updateTimers);
Code
5258void CvPlayer::updateTimers()5259{5260 CvUnit* pLoopUnit;5261 int iLoop;5262 m_endTurnBusyUnitUpdatesLeft--;5263 for(pLoopUnit = firstUnit(&iLoop); pLoopUnit; pLoopUnit = nextUnit(&iLoop))5264 {5265 pLoopUnit->UpdateMission();5266 pLoopUnit->doDelayedDeath();5267 }52685269 GetDiplomacyAI()->update();5270}