Bazaar developer reference

CvGrandStrategyAI::GetGrandStrategyPriority(AIGrandStrategyTypes) const

Defined in
CvGrandStrategyAI.cpp, line 844
Class
CvGrandStrategyAI
Hook name
CivHooks::CvGrandStrategyAI_GetGrandStrategyPriority

Hooks

static bool BeforeCvGrandStrategyAI_GetGrandStrategyPriority(const CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy, int& result);static void AfterCvGrandStrategyAI_GetGrandStrategyPriority(const CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy, int& result);static int ReplaceCvGrandStrategyAI_GetGrandStrategyPriority(int (*original)(const CvGrandStrategyAI*, AIGrandStrategyTypes), const CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy);CivRegisterBefore<CivHooks::CvGrandStrategyAI_GetGrandStrategyPriority>(host, &BeforeCvGrandStrategyAI_GetGrandStrategyPriority);CivRegisterAfter<CivHooks::CvGrandStrategyAI_GetGrandStrategyPriority>(host, &AfterCvGrandStrategyAI_GetGrandStrategyPriority);CivRegisterReplace<CivHooks::CvGrandStrategyAI_GetGrandStrategyPriority>(host, &ReplaceCvGrandStrategyAI_GetGrandStrategyPriority);

Code

843/// Returns the Priority Level the player has for a particular Grand Strategy844int CvGrandStrategyAI::GetGrandStrategyPriority(AIGrandStrategyTypes eGrandStrategy) const845{846	FAssert(eGrandStrategy != NO_AIGRANDSTRATEGY);847	return m_paiGrandStrategyPriority[eGrandStrategy];848}

Called by