Bazaar developer reference

CvEconomicAI::IsUsingStrategy(EconomicAIStrategyTypes)

Defined in
CvEconomicAI.cpp, line 497
Class
CvEconomicAI
Hook name
CivHooks::CvEconomicAI_IsUsingStrategy

Hooks

static bool BeforeCvEconomicAI_IsUsingStrategy(CvEconomicAI* self, EconomicAIStrategyTypes eStrategy, bool& result);static void AfterCvEconomicAI_IsUsingStrategy(CvEconomicAI* self, EconomicAIStrategyTypes eStrategy, bool& result);static bool ReplaceCvEconomicAI_IsUsingStrategy(bool (*original)(CvEconomicAI*, EconomicAIStrategyTypes), CvEconomicAI* self, EconomicAIStrategyTypes eStrategy);CivRegisterBefore<CivHooks::CvEconomicAI_IsUsingStrategy>(host, &BeforeCvEconomicAI_IsUsingStrategy);CivRegisterAfter<CivHooks::CvEconomicAI_IsUsingStrategy>(host, &AfterCvEconomicAI_IsUsingStrategy);CivRegisterReplace<CivHooks::CvEconomicAI_IsUsingStrategy>(host, &ReplaceCvEconomicAI_IsUsingStrategy);

Code

496/// Returns whether or not a player has adopted this Strategy497bool CvEconomicAI::IsUsingStrategy(EconomicAIStrategyTypes eStrategy)498{499	return m_pabUsingStrategy[(int) eStrategy];500}

Called by