Bazaar developer reference

CvPlayer::nextArmyAI(int *, bool)

Defined in
CvPlayer.cpp, line 21905
Class
CvPlayer
Hook name
CivHooks::CvPlayer_nextArmyAI_with_int_bool

Hooks

static bool BeforeCvPlayer_nextArmyAI_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvArmyAI*& result);static void AfterCvPlayer_nextArmyAI_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvArmyAI*& result);static CvArmyAI* ReplaceCvPlayer_nextArmyAI_with_int_bool(CvArmyAI* (*original)(CvPlayer*, int*, bool), CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_nextArmyAI_with_int_bool>(host, &BeforeCvPlayer_nextArmyAI_with_int_bool);CivRegisterAfter<CivHooks::CvPlayer_nextArmyAI_with_int_bool>(host, &AfterCvPlayer_nextArmyAI_with_int_bool);CivRegisterReplace<CivHooks::CvPlayer_nextArmyAI_with_int_bool>(host, &ReplaceCvPlayer_nextArmyAI_with_int_bool);

Code

21905CvArmyAI* CvPlayer::nextArmyAI(int* pIterIdx, bool bRev)21906{21907	return !bRev ? m_armyAIs.NextIter(pIterIdx) : m_armyAIs.PrevIter(pIterIdx);21908}

Calls

Called by