Bazaar developer reference

CvPlayer::EndTurnsForReadyUnits()

Defined in
CvPlayer.cpp, line 5342
Class
CvPlayer
Hook name
CivHooks::CvPlayer_EndTurnsForReadyUnits

Hooks

static bool BeforeCvPlayer_EndTurnsForReadyUnits(CvPlayer* self);static void AfterCvPlayer_EndTurnsForReadyUnits(CvPlayer* self);static void ReplaceCvPlayer_EndTurnsForReadyUnits(void (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_EndTurnsForReadyUnits>(host, &BeforeCvPlayer_EndTurnsForReadyUnits);CivRegisterAfter<CivHooks::CvPlayer_EndTurnsForReadyUnits>(host, &AfterCvPlayer_EndTurnsForReadyUnits);CivRegisterReplace<CivHooks::CvPlayer_EndTurnsForReadyUnits>(host, &ReplaceCvPlayer_EndTurnsForReadyUnits);

Code

5342void CvPlayer::EndTurnsForReadyUnits()5343{5344	CvUnit* pLoopUnit;5345	int iLoop;53465347	for(pLoopUnit = firstUnit(&iLoop); pLoopUnit; pLoopUnit = nextUnit(&iLoop))5348	{5349		if(pLoopUnit->ReadyToMove() && !pLoopUnit->isDelayedDeath())5350		{5351			pLoopUnit->finishMoves();5352		}5353	}5354}

Calls

Called by