CvGlobals::getNumAIGrandStrategyInfos()
- Defined in
- CvGlobals.cpp, line 3627
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumAIGrandStrategyInfos
Hooks
static bool BeforeCvGlobals_getNumAIGrandStrategyInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumAIGrandStrategyInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumAIGrandStrategyInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumAIGrandStrategyInfos>(host, &BeforeCvGlobals_getNumAIGrandStrategyInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumAIGrandStrategyInfos>(host, &AfterCvGlobals_getNumAIGrandStrategyInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumAIGrandStrategyInfos>(host, &ReplaceCvGlobals_getNumAIGrandStrategyInfos);
Code
3627int CvGlobals::getNumAIGrandStrategyInfos()3628{3629 return (int)m_pAIGrandStrategies->GetAIGrandStrategyEntries().size();3630}
Calls
- CvAIGrandStrategyXMLEntries::GetAIGrandStrategyEntries()
std::vector::size
Called by
- CvCitySpecializationAI::WeightProductionSubtypes(int, int)
- CvCitySpecializationAI::WeightSpecializations()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvGrandStrategyAI::LogGrandStrategies(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &)
- CvGrandStrategyAI::LogGuessOtherPlayerGrandStrategy(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &, PlayerTypes)