Bazaar developer reference

CvGlobals::getAICityStrategyInfo(AICityStrategyTypes)

Defined in
CvGlobals.cpp, line 3659
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes

Hooks

static bool BeforeCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes(CvGlobals* self, AICityStrategyTypes eAICityStrategyNum, CvAICityStrategyEntry*& result);static void AfterCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes(CvGlobals* self, AICityStrategyTypes eAICityStrategyNum, CvAICityStrategyEntry*& result);static CvAICityStrategyEntry* ReplaceCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes(CvAICityStrategyEntry* (*original)(CvGlobals*, AICityStrategyTypes), CvGlobals* self, AICityStrategyTypes eAICityStrategyNum);CivRegisterBefore<CivHooks::CvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes>(host, &BeforeCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes);CivRegisterAfter<CivHooks::CvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes>(host, &AfterCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes);CivRegisterReplace<CivHooks::CvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes>(host, &ReplaceCvGlobals_getAICityStrategyInfo_with_AICityStrategyTypes);

Code

3659CvAICityStrategyEntry* CvGlobals::getAICityStrategyInfo(AICityStrategyTypes eAICityStrategyNum)3660{3661	CvAssert(eAICityStrategyNum > -1);3662	CvAssert(eAICityStrategyNum < GC.getNumAICityStrategyInfos());3663	return m_pAICityStrategies->GetAICityStrategyEntries()[eAICityStrategyNum];3664}

Calls

Called by