Bazaar developer reference

CvAIGrandStrategyXMLEntries::GetNumAIGrandStrategies()

Defined in
CvGrandStrategyAI.cpp, line 96
Class
CvAIGrandStrategyXMLEntries
Hook name
CivHooks::CvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies

Hooks

static bool BeforeCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies(CvAIGrandStrategyXMLEntries* self, int& result);static void AfterCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies(CvAIGrandStrategyXMLEntries* self, int& result);static int ReplaceCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies(int (*original)(CvAIGrandStrategyXMLEntries*), CvAIGrandStrategyXMLEntries* self);CivRegisterBefore<CivHooks::CvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies>(host, &BeforeCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies);CivRegisterAfter<CivHooks::CvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies>(host, &AfterCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies);CivRegisterReplace<CivHooks::CvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies>(host, &ReplaceCvAIGrandStrategyXMLEntries_GetNumAIGrandStrategies);

Code

95/// Number of defined AIStrategies96int CvAIGrandStrategyXMLEntries::GetNumAIGrandStrategies()97{98	return m_paAIGrandStrategyEntries.size();99}

Calls

Called by