CvCity::changeFoodKept(int)
- Defined in
- CvCity.cpp, line 9237
- Class
- CvCity
- Hook name
CivHooks::CvCity_changeFoodKept
Hooks
static bool BeforeCvCity_changeFoodKept(CvCity* self, int iChange);static void AfterCvCity_changeFoodKept(CvCity* self, int iChange);static void ReplaceCvCity_changeFoodKept(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeFoodKept>(host, &BeforeCvCity_changeFoodKept);CivRegisterAfter<CivHooks::CvCity_changeFoodKept>(host, &AfterCvCity_changeFoodKept);CivRegisterReplace<CivHooks::CvCity_changeFoodKept>(host, &ReplaceCvCity_changeFoodKept);
Code
9237void CvCity::changeFoodKept(int iChange)9238{9239 VALIDATE_OBJECT9240 setFoodKept(getFoodKept() + iChange);9241}