Bazaar developer reference

CityStrategyAIHelpers::IsTestCityStrategy_LargeCity(CvCity *)

Defined in
CvCityStrategyAI.cpp, line 2249
Hook name
CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_LargeCity

Hooks

static bool BeforeCityStrategyAIHelpers_IsTestCityStrategy_LargeCity(CvCity* pCity, bool& result);static void AfterCityStrategyAIHelpers_IsTestCityStrategy_LargeCity(CvCity* pCity, bool& result);static bool ReplaceCityStrategyAIHelpers_IsTestCityStrategy_LargeCity(bool (*original)(CvCity*), CvCity* pCity);CivRegisterBefore<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_LargeCity>(host, &BeforeCityStrategyAIHelpers_IsTestCityStrategy_LargeCity);CivRegisterAfter<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_LargeCity>(host, &AfterCityStrategyAIHelpers_IsTestCityStrategy_LargeCity);CivRegisterReplace<CivHooks::CityStrategyAIHelpers_IsTestCityStrategy_LargeCity>(host, &ReplaceCityStrategyAIHelpers_IsTestCityStrategy_LargeCity);

Code

2248/// "Small City" City Strategy: If a City is 15 or above, boost science a LOT2249bool CityStrategyAIHelpers::IsTestCityStrategy_LargeCity(CvCity* pCity)2250{2251	// City Population is very large, really boost science2252	if(pCity->getPopulation() >= GC.getAI_CITYSTRATEGY_LARGE_CITY_POP_THRESHOLD())	// 12+2253	{2254		return true;2255	}22562257	return false;2258}

Calls

Called by