Bazaar developer reference

CvPlayer::getArmyAI(int)

Defined in
CvPlayer.cpp, line 21924
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getArmyAI_with_int

Hooks

static bool BeforeCvPlayer_getArmyAI_with_int(CvPlayer* self, int iID, CvArmyAI*& result);static void AfterCvPlayer_getArmyAI_with_int(CvPlayer* self, int iID, CvArmyAI*& result);static CvArmyAI* ReplaceCvPlayer_getArmyAI_with_int(CvArmyAI* (*original)(CvPlayer*, int), CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getArmyAI_with_int>(host, &BeforeCvPlayer_getArmyAI_with_int);CivRegisterAfter<CivHooks::CvPlayer_getArmyAI_with_int>(host, &AfterCvPlayer_getArmyAI_with_int);CivRegisterReplace<CivHooks::CvPlayer_getArmyAI_with_int>(host, &ReplaceCvPlayer_getArmyAI_with_int);

Code

21924CvArmyAI* CvPlayer::getArmyAI(int iID)21925{21926	return ((CvArmyAI*)(m_armyAIs.GetAt(iID)));21927}

Calls

Called by