Bazaar developer reference

CvArmyAI::GetNumFormationEntries() const

Defined in
CvArmyAI.cpp, line 370
Class
CvArmyAI
Hook name
CivHooks::CvArmyAI_GetNumFormationEntries

Hooks

static bool BeforeCvArmyAI_GetNumFormationEntries(const CvArmyAI* self, int& result);static void AfterCvArmyAI_GetNumFormationEntries(const CvArmyAI* self, int& result);static int ReplaceCvArmyAI_GetNumFormationEntries(int (*original)(const CvArmyAI*), const CvArmyAI* self);CivRegisterBefore<CivHooks::CvArmyAI_GetNumFormationEntries>(host, &BeforeCvArmyAI_GetNumFormationEntries);CivRegisterAfter<CivHooks::CvArmyAI_GetNumFormationEntries>(host, &AfterCvArmyAI_GetNumFormationEntries);CivRegisterReplace<CivHooks::CvArmyAI_GetNumFormationEntries>(host, &ReplaceCvArmyAI_GetNumFormationEntries);

Code

369/// How many slots are there in this formation if filled370int CvArmyAI::GetNumFormationEntries() const371{372	return m_FormationEntries.size();373}

Calls

Called by