Bazaar developer reference

CvPlayer::firstUnit(int *, bool) const

Defined in
CvPlayer.cpp, line 21828
Class
CvPlayer
Hook name
CivHooks::CvPlayer_firstUnit

Hooks

static bool BeforeCvPlayer_firstUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static void AfterCvPlayer_firstUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static const CvUnit* ReplaceCvPlayer_firstUnit(const CvUnit* (*original)(const CvPlayer*, int*, bool), const CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_firstUnit>(host, &BeforeCvPlayer_firstUnit);CivRegisterAfter<CivHooks::CvPlayer_firstUnit>(host, &AfterCvPlayer_firstUnit);CivRegisterReplace<CivHooks::CvPlayer_firstUnit>(host, &ReplaceCvPlayer_firstUnit);

Code

21828const CvUnit* CvPlayer::firstUnit(int* pIterIdx, bool bRev) const21829{21830	return !bRev ? m_units.BeginIter(pIterIdx) : m_units.EndIter(pIterIdx);21831}

Calls

Called by