Bazaar developer reference

CvPlayer::nextArmyAI(int *, bool) const

Defined in
CvPlayer.cpp, line 21892
Class
CvPlayer
Hook name
CivHooks::CvPlayer_nextArmyAI

Hooks

static bool BeforeCvPlayer_nextArmyAI(const CvPlayer* self, int* pIterIdx, bool bRev, const CvArmyAI*& result);static void AfterCvPlayer_nextArmyAI(const CvPlayer* self, int* pIterIdx, bool bRev, const CvArmyAI*& result);static const CvArmyAI* ReplaceCvPlayer_nextArmyAI(const CvArmyAI* (*original)(const CvPlayer*, int*, bool), const CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_nextArmyAI>(host, &BeforeCvPlayer_nextArmyAI);CivRegisterAfter<CivHooks::CvPlayer_nextArmyAI>(host, &AfterCvPlayer_nextArmyAI);CivRegisterReplace<CivHooks::CvPlayer_nextArmyAI>(host, &ReplaceCvPlayer_nextArmyAI);

Code

21892const CvArmyAI* CvPlayer::nextArmyAI(int* pIterIdx, bool bRev) const21893{21894	return !bRev ? m_armyAIs.NextIter(pIterIdx) : m_armyAIs.PrevIter(pIterIdx);21895}

Calls