Bazaar developer reference

CvCity::getProductionNeeded(UnitTypes) const

Defined in
CvCity.cpp, line 4754
Class
CvCity
Hook name
CivHooks::CvCity_getProductionNeeded_with_UnitTypes_const

Hooks

static bool BeforeCvCity_getProductionNeeded_with_UnitTypes_const(const CvCity* self, UnitTypes eUnit, int& result);static void AfterCvCity_getProductionNeeded_with_UnitTypes_const(const CvCity* self, UnitTypes eUnit, int& result);static int ReplaceCvCity_getProductionNeeded_with_UnitTypes_const(int (*original)(const CvCity*, UnitTypes), const CvCity* self, UnitTypes eUnit);CivRegisterBefore<CivHooks::CvCity_getProductionNeeded_with_UnitTypes_const>(host, &BeforeCvCity_getProductionNeeded_with_UnitTypes_const);CivRegisterAfter<CivHooks::CvCity_getProductionNeeded_with_UnitTypes_const>(host, &AfterCvCity_getProductionNeeded_with_UnitTypes_const);CivRegisterReplace<CivHooks::CvCity_getProductionNeeded_with_UnitTypes_const>(host, &ReplaceCvCity_getProductionNeeded_with_UnitTypes_const);

Code

4754int CvCity::getProductionNeeded(UnitTypes eUnit) const4755{4756	VALIDATE_OBJECT4757	int iNumProductionNeeded = GET_PLAYER(getOwner()).getProductionNeeded(eUnit);47584759	return iNumProductionNeeded;4760}

Calls

Called by