Bazaar developer reference

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

Called by