Bazaar developer reference

CvPlayer::firstArmyAI(int *, bool) const

Defined in
CvPlayer.cpp, line 21885
Class
CvPlayer
Hook name
CivHooks::CvPlayer_firstArmyAI

Hooks

static bool BeforeCvPlayer_firstArmyAI(const CvPlayer* self, int* pIterIdx, bool bRev, const CvArmyAI*& result);static void AfterCvPlayer_firstArmyAI(const CvPlayer* self, int* pIterIdx, bool bRev, const CvArmyAI*& result);static const CvArmyAI* ReplaceCvPlayer_firstArmyAI(const CvArmyAI* (*original)(const CvPlayer*, int*, bool), const CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_firstArmyAI>(host, &BeforeCvPlayer_firstArmyAI);CivRegisterAfter<CivHooks::CvPlayer_firstArmyAI>(host, &AfterCvPlayer_firstArmyAI);CivRegisterReplace<CivHooks::CvPlayer_firstArmyAI>(host, &ReplaceCvPlayer_firstArmyAI);

Code

21885const CvArmyAI* CvPlayer::firstArmyAI(int* pIterIdx, bool bRev) const21886{21887	return !bRev ? m_armyAIs.BeginIter(pIterIdx) : m_armyAIs.EndIter(pIterIdx);21888}

Calls