Bazaar developer reference

CvCity::getRawProductionDifference(bool, bool) const

Defined in
CvCity.cpp, line 5829
Class
CvCity
Hook name
CivHooks::CvCity_getRawProductionDifference

Hooks

static bool BeforeCvCity_getRawProductionDifference(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static void AfterCvCity_getRawProductionDifference(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static int ReplaceCvCity_getRawProductionDifference(int (*original)(const CvCity*, bool, bool), const CvCity* self, bool bIgnoreFood, bool bOverflow);CivRegisterBefore<CivHooks::CvCity_getRawProductionDifference>(host, &BeforeCvCity_getRawProductionDifference);CivRegisterAfter<CivHooks::CvCity_getRawProductionDifference>(host, &AfterCvCity_getRawProductionDifference);CivRegisterReplace<CivHooks::CvCity_getRawProductionDifference>(host, &ReplaceCvCity_getRawProductionDifference);

Code

5828// What is the production of this city, not counting modifiers specific to what we happen to be building?5829int CvCity::getRawProductionDifference(bool bIgnoreFood, bool bOverflow) const5830{5831	VALIDATE_OBJECT5832	return getProductionDifference(getProductionNeeded(), getProduction(), getGeneralProductionModifiers(), (!bIgnoreFood && isFoodProduction()), bOverflow);5833}

Calls

Called by