Bazaar developer reference

CvCityStrategyAI::GetCity()

Defined in
CvCityStrategyAI.cpp, line 523
Class
CvCityStrategyAI
Hook name
CivHooks::CvCityStrategyAI_GetCity

Hooks

static bool BeforeCvCityStrategyAI_GetCity(CvCityStrategyAI* self, CvCity*& result);static void AfterCvCityStrategyAI_GetCity(CvCityStrategyAI* self, CvCity*& result);static CvCity* ReplaceCvCityStrategyAI_GetCity(CvCity* (*original)(CvCityStrategyAI*), CvCityStrategyAI* self);CivRegisterBefore<CivHooks::CvCityStrategyAI_GetCity>(host, &BeforeCvCityStrategyAI_GetCity);CivRegisterAfter<CivHooks::CvCityStrategyAI_GetCity>(host, &AfterCvCityStrategyAI_GetCity);CivRegisterReplace<CivHooks::CvCityStrategyAI_GetCity>(host, &ReplaceCvCityStrategyAI_GetCity);

Code

522/// Returns the City object the Strategies are associated with523CvCity* CvCityStrategyAI::GetCity()524{525	return m_pCity;526}

Called by