Bazaar developer reference

CvCity::getCurrentProductionDifferenceTimes100(bool, bool) const

Defined in
CvCity.cpp, line 5874
Class
CvCity
Hook name
CivHooks::CvCity_getCurrentProductionDifferenceTimes100

Hooks

static bool BeforeCvCity_getCurrentProductionDifferenceTimes100(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static void AfterCvCity_getCurrentProductionDifferenceTimes100(const CvCity* self, bool bIgnoreFood, bool bOverflow, int& result);static int ReplaceCvCity_getCurrentProductionDifferenceTimes100(int (*original)(const CvCity*, bool, bool), const CvCity* self, bool bIgnoreFood, bool bOverflow);CivRegisterBefore<CivHooks::CvCity_getCurrentProductionDifferenceTimes100>(host, &BeforeCvCity_getCurrentProductionDifferenceTimes100);CivRegisterAfter<CivHooks::CvCity_getCurrentProductionDifferenceTimes100>(host, &AfterCvCity_getCurrentProductionDifferenceTimes100);CivRegisterReplace<CivHooks::CvCity_getCurrentProductionDifferenceTimes100>(host, &ReplaceCvCity_getCurrentProductionDifferenceTimes100);

Code

5874int CvCity::getCurrentProductionDifferenceTimes100(bool bIgnoreFood, bool bOverflow) const5875{5876	VALIDATE_OBJECT5877	return getProductionDifferenceTimes100(getProductionNeeded(), getProductionTimes100(), getProductionModifier(), (!bIgnoreFood && isFoodProduction()), bOverflow);5878}

Calls

Called by