Bazaar developer reference

CvCity::getMaxFoodKeptPercent() const

Defined in
CvCity.cpp, line 9245
Class
CvCity
Hook name
CivHooks::CvCity_getMaxFoodKeptPercent

Hooks

static bool BeforeCvCity_getMaxFoodKeptPercent(const CvCity* self, int& result);static void AfterCvCity_getMaxFoodKeptPercent(const CvCity* self, int& result);static int ReplaceCvCity_getMaxFoodKeptPercent(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_getMaxFoodKeptPercent>(host, &BeforeCvCity_getMaxFoodKeptPercent);CivRegisterAfter<CivHooks::CvCity_getMaxFoodKeptPercent>(host, &AfterCvCity_getMaxFoodKeptPercent);CivRegisterReplace<CivHooks::CvCity_getMaxFoodKeptPercent>(host, &ReplaceCvCity_getMaxFoodKeptPercent);

Code

9245int CvCity::getMaxFoodKeptPercent() const9246{9247	VALIDATE_OBJECT9248	return m_iMaxFoodKeptPercent;9249}

Calls

Called by