Bazaar developer reference

CvCity::setFoodTimes100(int)

Defined in
CvCity.cpp, line 9195
Class
CvCity
Hook name
CivHooks::CvCity_setFoodTimes100

Hooks

static bool BeforeCvCity_setFoodTimes100(CvCity* self, int iNewValue);static void AfterCvCity_setFoodTimes100(CvCity* self, int iNewValue);static void ReplaceCvCity_setFoodTimes100(void (*original)(CvCity*, int), CvCity* self, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setFoodTimes100>(host, &BeforeCvCity_setFoodTimes100);CivRegisterAfter<CivHooks::CvCity_setFoodTimes100>(host, &AfterCvCity_setFoodTimes100);CivRegisterReplace<CivHooks::CvCity_setFoodTimes100>(host, &ReplaceCvCity_setFoodTimes100);

Code

9195void CvCity::setFoodTimes100(int iNewValue)9196{9197	VALIDATE_OBJECT9198	if(getFoodTimes100() != iNewValue)9199	{9200		m_iFood = iNewValue;9201	}9202}

Calls

Called by