Bazaar developer reference

CvCity::productionLeft() const

Defined in
CvCity.cpp, line 7395
Class
CvCity
Hook name
CivHooks::CvCity_productionLeft

Hooks

static bool BeforeCvCity_productionLeft(const CvCity* self, int& result);static void AfterCvCity_productionLeft(const CvCity* self, int& result);static int ReplaceCvCity_productionLeft(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_productionLeft>(host, &BeforeCvCity_productionLeft);CivRegisterAfter<CivHooks::CvCity_productionLeft>(host, &AfterCvCity_productionLeft);CivRegisterReplace<CivHooks::CvCity_productionLeft>(host, &ReplaceCvCity_productionLeft);

Code

7395int CvCity::productionLeft() const7396{7397	VALIDATE_OBJECT7398	return (getProductionNeeded() - getProduction());7399}

Calls

Called by