Bazaar developer reference

CvCity::foodDifference(bool) const

Defined in
CvCity.cpp, line 7280
Class
CvCity
Hook name
CivHooks::CvCity_foodDifference

Hooks

static bool BeforeCvCity_foodDifference(const CvCity* self, bool bBottom, int& result);static void AfterCvCity_foodDifference(const CvCity* self, bool bBottom, int& result);static int ReplaceCvCity_foodDifference(int (*original)(const CvCity*, bool), const CvCity* self, bool bBottom);CivRegisterBefore<CivHooks::CvCity_foodDifference>(host, &BeforeCvCity_foodDifference);CivRegisterAfter<CivHooks::CvCity_foodDifference>(host, &AfterCvCity_foodDifference);CivRegisterReplace<CivHooks::CvCity_foodDifference>(host, &ReplaceCvCity_foodDifference);

Code

7280int CvCity::foodDifference(bool bBottom) const7281{7282	VALIDATE_OBJECT7283	return foodDifferenceTimes100(bBottom) / 100;7284}

Calls

Called by