CvGlobals::getAIGrandStrategyInfo(AIGrandStrategyTypes)
- Defined in
- CvGlobals.cpp, line 3637
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes
Hooks
static bool BeforeCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes(CvGlobals* self, AIGrandStrategyTypes eAIGrandStrategyNum, CvAIGrandStrategyXMLEntry*& result);static void AfterCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes(CvGlobals* self, AIGrandStrategyTypes eAIGrandStrategyNum, CvAIGrandStrategyXMLEntry*& result);static CvAIGrandStrategyXMLEntry* ReplaceCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes(CvAIGrandStrategyXMLEntry* (*original)(CvGlobals*, AIGrandStrategyTypes), CvGlobals* self, AIGrandStrategyTypes eAIGrandStrategyNum);CivRegisterBefore<CivHooks::CvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes>(host, &BeforeCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes);CivRegisterAfter<CivHooks::CvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes>(host, &AfterCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes);CivRegisterReplace<CivHooks::CvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes>(host, &ReplaceCvGlobals_getAIGrandStrategyInfo_with_AIGrandStrategyTypes);
Code
3637CvAIGrandStrategyXMLEntry* CvGlobals::getAIGrandStrategyInfo(AIGrandStrategyTypes eAIGrandStrategyNum)3638{3639 CvAssert(eAIGrandStrategyNum > -1);3640 CvAssert(eAIGrandStrategyNum < GC.getNumAIGrandStrategyInfos());3641 return m_pAIGrandStrategies->GetAIGrandStrategyEntries()[eAIGrandStrategyNum];3642}
Calls
- CvAIGrandStrategyXMLEntries::GetAIGrandStrategyEntries()
std::vector::operator[]
Called by
- CvCitySpecializationAI::LogSpecializationUpdate(CitySpecializationUpdateType)
- CvCitySpecializationAI::WeightProductionSubtypes(int, int)
- CvCitySpecializationAI::WeightSpecializations()
- CvDiplomacyAI::LogOtherPlayerGuessStatus()
- CvDiplomacyAI::LogStatus()
- CvGrandStrategyAI::LogGrandStrategies(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &)
- CvGrandStrategyAI::LogGuessOtherPlayerGrandStrategy(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &, PlayerTypes)