Bazaar developer reference

CvCity::changeFeatureProduction(int)

Defined in
CvCity.cpp, line 9332
Class
CvCity
Hook name
CivHooks::CvCity_changeFeatureProduction

Hooks

static bool BeforeCvCity_changeFeatureProduction(CvCity* self, int iChange);static void AfterCvCity_changeFeatureProduction(CvCity* self, int iChange);static void ReplaceCvCity_changeFeatureProduction(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeFeatureProduction>(host, &BeforeCvCity_changeFeatureProduction);CivRegisterAfter<CivHooks::CvCity_changeFeatureProduction>(host, &AfterCvCity_changeFeatureProduction);CivRegisterReplace<CivHooks::CvCity_changeFeatureProduction>(host, &ReplaceCvCity_changeFeatureProduction);

Code

9332void CvCity::changeFeatureProduction(int iChange)9333{9334	VALIDATE_OBJECT9335	setFeatureProduction(getFeatureProduction() + iChange);9336}

Calls

Called by