Bazaar developer reference

CvPlayer::nextUnit(int *, bool)

Defined in
CvPlayer.cpp, line 21846
Class
CvPlayer
Hook name
CivHooks::CvPlayer_nextUnit_with_int_bool

Hooks

static bool BeforeCvPlayer_nextUnit_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvUnit*& result);static void AfterCvPlayer_nextUnit_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvUnit*& result);static CvUnit* ReplaceCvPlayer_nextUnit_with_int_bool(CvUnit* (*original)(CvPlayer*, int*, bool), CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_nextUnit_with_int_bool>(host, &BeforeCvPlayer_nextUnit_with_int_bool);CivRegisterAfter<CivHooks::CvPlayer_nextUnit_with_int_bool>(host, &AfterCvPlayer_nextUnit_with_int_bool);CivRegisterReplace<CivHooks::CvPlayer_nextUnit_with_int_bool>(host, &ReplaceCvPlayer_nextUnit_with_int_bool);

Code

21846CvUnit* CvPlayer::nextUnit(int* pIterIdx, bool bRev)21847{21848	return !bRev ? m_units.NextIter(pIterIdx) : m_units.PrevIter(pIterIdx);21849}

Calls

Called by

105 functions in 26 files