Bazaar developer reference

CityStrategyAIHelpers::IsTestCityStrategy_CoastCity(CvCity *)

Defined in
CvCityStrategyAI.cpp, line 3126
Hook name
CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_CoastCity

Hooks

static bool BeforeCityStrategyAIHelpers_IsTestCityStrategy_CoastCity(CvCity* pCity, bool& result);static void AfterCityStrategyAIHelpers_IsTestCityStrategy_CoastCity(CvCity* pCity, bool& result);static bool ReplaceCityStrategyAIHelpers_IsTestCityStrategy_CoastCity(bool (*original)(CvCity*), CvCity* pCity);CivRegisterBefore<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_CoastCity>(host, &BeforeCityStrategyAIHelpers_IsTestCityStrategy_CoastCity);CivRegisterAfter<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_CoastCity>(host, &AfterCityStrategyAIHelpers_IsTestCityStrategy_CoastCity);CivRegisterReplace<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_CoastCity>(host, &ReplaceCityStrategyAIHelpers_IsTestCityStrategy_CoastCity);

Code

3125/// "Coast City" City Strategy: give a little flavor to this city3126bool CityStrategyAIHelpers::IsTestCityStrategy_CoastCity(CvCity* pCity)3127{3128	if(pCity->plot()->isCoastalLand())3129	{3130		return true;3131	}31323133	return false;3134}

Calls

Called by