Bazaar developer reference

CvCity::growthThreshold() const

Defined in
CvCity.cpp, line 7385
Class
CvCity
Hook name
CivHooks::CvCity_growthThreshold

Hooks

static bool BeforeCvCity_growthThreshold(const CvCity* self, int& result);static void AfterCvCity_growthThreshold(const CvCity* self, int& result);static int ReplaceCvCity_growthThreshold(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_growthThreshold>(host, &BeforeCvCity_growthThreshold);CivRegisterAfter<CivHooks::CvCity_growthThreshold>(host, &AfterCvCity_growthThreshold);CivRegisterReplace<CivHooks::CvCity_growthThreshold>(host, &ReplaceCvCity_growthThreshold);

Code

7385int CvCity::growthThreshold() const7386{7387	VALIDATE_OBJECT7388	int iNumFoodNeeded = GET_PLAYER(getOwner()).getGrowthThreshold(getPopulation());73897390	return (iNumFoodNeeded);7391}

Calls

Called by