Bazaar developer reference

CvCity::getCurrentProductionDifference(bool, bool) const

Defined in
CvCity.cpp, line 5821
Class
CvCity
Hook name
CivHooks::CvCity_getCurrentProductionDifference

Hooks

static bool BeforeCvCity_getCurrentProductionDifference(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static void AfterCvCity_getCurrentProductionDifference(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static int ReplaceCvCity_getCurrentProductionDifference(int (*original)(const CvCity*, bool, bool), const CvCity* self, bool bIgnoreFood, bool bOverflow);CivRegisterBefore<CivHooks::CvCity_getCurrentProductionDifference>(host, &BeforeCvCity_getCurrentProductionDifference);CivRegisterAfter<CivHooks::CvCity_getCurrentProductionDifference>(host, &AfterCvCity_getCurrentProductionDifference);CivRegisterReplace<CivHooks::CvCity_getCurrentProductionDifference>(host, &ReplaceCvCity_getCurrentProductionDifference);

Code

5821int CvCity::getCurrentProductionDifference(bool bIgnoreFood, bool bOverflow) const5822{5823	VALIDATE_OBJECT5824	return getProductionDifference(getProductionNeeded(), getProduction(), getProductionModifier(), (!bIgnoreFood && isFoodProduction()), bOverflow);5825}

Calls

Called by