Bazaar developer reference

CvCity::getProductionNeeded(ProcessTypes) const

Defined in
CvCity.cpp, line 4933
Class
CvCity
Hook name
CivHooks::CvCity_getProductionNeeded_with_ProcessTypes_const

Hooks

static bool BeforeCvCity_getProductionNeeded_with_ProcessTypes_const(const CvCity* self, ProcessTypes eProcess, int& result);static void AfterCvCity_getProductionNeeded_with_ProcessTypes_const(const CvCity* self, ProcessTypes eProcess, int& result);static int ReplaceCvCity_getProductionNeeded_with_ProcessTypes_const(int (*original)(const CvCity*, ProcessTypes), const CvCity* self, ProcessTypes eProcess);CivRegisterBefore<CivHooks::CvCity_getProductionNeeded_with_ProcessTypes_const>(host, &BeforeCvCity_getProductionNeeded_with_ProcessTypes_const);CivRegisterAfter<CivHooks::CvCity_getProductionNeeded_with_ProcessTypes_const>(host, &AfterCvCity_getProductionNeeded_with_ProcessTypes_const);CivRegisterReplace<CivHooks::CvCity_getProductionNeeded_with_ProcessTypes_const>(host, &ReplaceCvCity_getProductionNeeded_with_ProcessTypes_const);

Code

4933int CvCity::getProductionNeeded(ProcessTypes eProcess) const4934{4935	VALIDATE_OBJECT49364937	if (eProcess == GC.getInfoTypeForString("PROCESS_STOCKPILE")) {4938		return GET_PLAYER(getOwner()).getMaxStockpile();4939	}49404941	return INT_MAX;4942}

Calls

Called by