Bazaar developer reference

CvCity::getFood() const

Defined in
CvCity.cpp, line 9173
Class
CvCity
Hook name
CivHooks::CvCity_getFood

Hooks

static bool BeforeCvCity_getFood(const CvCity* self, int& result);static void AfterCvCity_getFood(const CvCity* self, int& result);static int ReplaceCvCity_getFood(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_getFood>(host, &BeforeCvCity_getFood);CivRegisterAfter<CivHooks::CvCity_getFood>(host, &AfterCvCity_getFood);CivRegisterReplace<CivHooks::CvCity_getFood>(host, &ReplaceCvCity_getFood);

Code

9173int CvCity::getFood() const9174{9175	VALIDATE_OBJECT9176	return m_iFood / 100;9177}

Calls

Called by