Bazaar developer reference

CvCity::getRawProductionDifferenceTimes100(bool, bool) const

Defined in
CvCity.cpp, line 5882
Class
CvCity
Hook name
CivHooks::CvCity_getRawProductionDifferenceTimes100

Hooks

static bool BeforeCvCity_getRawProductionDifferenceTimes100(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static void AfterCvCity_getRawProductionDifferenceTimes100(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static int ReplaceCvCity_getRawProductionDifferenceTimes100(int (*original)(const CvCity*, bool, bool), const CvCity* self, bool bIgnoreFood, bool bOverflow);CivRegisterBefore<CivHooks::CvCity_getRawProductionDifferenceTimes100>(host, &BeforeCvCity_getRawProductionDifferenceTimes100);CivRegisterAfter<CivHooks::CvCity_getRawProductionDifferenceTimes100>(host, &AfterCvCity_getRawProductionDifferenceTimes100);CivRegisterReplace<CivHooks::CvCity_getRawProductionDifferenceTimes100>(host, &ReplaceCvCity_getRawProductionDifferenceTimes100);

Code

5881// What is the production of this city, not counting modifiers specific to what we happen to be building?5882int CvCity::getRawProductionDifferenceTimes100(bool bIgnoreFood, bool bOverflow) const5883{5884	VALIDATE_OBJECT5885	return getProductionDifferenceTimes100(getProductionNeeded(), getProductionTimes100(), getGeneralProductionModifiers(), (!bIgnoreFood && isFoodProduction()), bOverflow);5886}

Calls

Called by