Bazaar developer reference

CvPlayer::nextUnit(int *, bool) const

Defined in
CvPlayer.cpp, line 21834
Class
CvPlayer
Hook name
CivHooks::CvPlayer_nextUnit

Hooks

static bool BeforeCvPlayer_nextUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static void AfterCvPlayer_nextUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static const CvUnit* ReplaceCvPlayer_nextUnit(const CvUnit* (*original)(const CvPlayer*, int*, bool), const CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_nextUnit>(host, &BeforeCvPlayer_nextUnit);CivRegisterAfter<CivHooks::CvPlayer_nextUnit>(host, &AfterCvPlayer_nextUnit);CivRegisterReplace<CivHooks::CvPlayer_nextUnit>(host, &ReplaceCvPlayer_nextUnit);

Code

21834const CvUnit* CvPlayer::nextUnit(int* pIterIdx, bool bRev) const21835{21836	return !bRev ? m_units.NextIter(pIterIdx) : m_units.PrevIter(pIterIdx);21837}

Calls

Called by