Bazaar developer reference

CvGrandStrategyAI::SetGrandStrategyPriority(AIGrandStrategyTypes, int)

Defined in
CvGrandStrategyAI.cpp, line 851
Class
CvGrandStrategyAI
Hook name
CivHooks::CvGrandStrategyAI_SetGrandStrategyPriority

Hooks

static bool BeforeCvGrandStrategyAI_SetGrandStrategyPriority(CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy, int iValue);static void AfterCvGrandStrategyAI_SetGrandStrategyPriority(CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy, int iValue);static void ReplaceCvGrandStrategyAI_SetGrandStrategyPriority(void (*original)(CvGrandStrategyAI*, AIGrandStrategyTypes, int), CvGrandStrategyAI* self, AIGrandStrategyTypes eGrandStrategy, int iValue);CivRegisterBefore<CivHooks::CvGrandStrategyAI_SetGrandStrategyPriority>(host, &BeforeCvGrandStrategyAI_SetGrandStrategyPriority);CivRegisterAfter<CivHooks::CvGrandStrategyAI_SetGrandStrategyPriority>(host, &AfterCvGrandStrategyAI_SetGrandStrategyPriority);CivRegisterReplace<CivHooks::CvGrandStrategyAI_SetGrandStrategyPriority>(host, &ReplaceCvGrandStrategyAI_SetGrandStrategyPriority);

Code

850/// Sets the Priority Level the player has for a particular Grand Strategy851void CvGrandStrategyAI::SetGrandStrategyPriority(AIGrandStrategyTypes eGrandStrategy, int iValue)852{853	FAssert(eGrandStrategy != NO_AIGRANDSTRATEGY);854	m_paiGrandStrategyPriority[eGrandStrategy] = iValue;855}

Called by