Bazaar developer reference

CvPlayer::firstUnit(int *, bool)

Defined in
CvPlayer.cpp, line 21840
Class
CvPlayer
Hook name
CivHooks::CvPlayer_firstUnit_with_int_bool

Hooks

static bool BeforeCvPlayer_firstUnit_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvUnit*& result);static void AfterCvPlayer_firstUnit_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvUnit*& result);static CvUnit* ReplaceCvPlayer_firstUnit_with_int_bool(CvUnit* (*original)(CvPlayer*, int*, bool), CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_firstUnit_with_int_bool>(host, &BeforeCvPlayer_firstUnit_with_int_bool);CivRegisterAfter<CivHooks::CvPlayer_firstUnit_with_int_bool>(host, &AfterCvPlayer_firstUnit_with_int_bool);CivRegisterReplace<CivHooks::CvPlayer_firstUnit_with_int_bool>(host, &ReplaceCvPlayer_firstUnit_with_int_bool);

Code

21840CvUnit* CvPlayer::firstUnit(int* pIterIdx, bool bRev)21841{21842	return !bRev ? m_units.BeginIter(pIterIdx) : m_units.EndIter(pIterIdx);21843}

Calls

Called by

105 functions in 26 files