Bazaar developer reference

CvPlayer::firstArmyAI(int *, bool)

Defined in
CvPlayer.cpp, line 21898
Class
CvPlayer
Hook name
CivHooks::CvPlayer_firstArmyAI_with_int_bool

Hooks

static bool BeforeCvPlayer_firstArmyAI_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvArmyAI*& result);static void AfterCvPlayer_firstArmyAI_with_int_bool(CvPlayer* self, int* pIterIdx, bool bRev, CvArmyAI*& result);static CvArmyAI* ReplaceCvPlayer_firstArmyAI_with_int_bool(CvArmyAI* (*original)(CvPlayer*, int*, bool), CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_firstArmyAI_with_int_bool>(host, &BeforeCvPlayer_firstArmyAI_with_int_bool);CivRegisterAfter<CivHooks::CvPlayer_firstArmyAI_with_int_bool>(host, &AfterCvPlayer_firstArmyAI_with_int_bool);CivRegisterReplace<CivHooks::CvPlayer_firstArmyAI_with_int_bool>(host, &ReplaceCvPlayer_firstArmyAI_with_int_bool);

Code

21898CvArmyAI* CvPlayer::firstArmyAI(int* pIterIdx, bool bRev)21899{21900	return !bRev ? m_armyAIs.BeginIter(pIterIdx) : m_armyAIs.EndIter(pIterIdx);21901}

Calls

Called by