Bazaar developer reference

CvCity::getHurryCost(HurryTypes, bool, BuildingTypes, bool) const

Defined in
CvCity.cpp, line 7505
Class
CvCity
Hook name
CivHooks::CvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const

Hooks

static bool BeforeCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const(const CvCity* self, HurryTypes eHurry, bool bExtra, BuildingTypes eBuilding, bool bIgnoreNew, int& result);static void AfterCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const(const CvCity* self, HurryTypes eHurry, bool bExtra, BuildingTypes eBuilding, bool bIgnoreNew, int& result);static int ReplaceCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const(int (*original)(const CvCity*, HurryTypes, bool, BuildingTypes, bool), const CvCity* self, HurryTypes eHurry, bool bExtra, BuildingTypes eBuilding, bool bIgnoreNew);CivRegisterBefore<CivHooks::CvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const>(host, &BeforeCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const);CivRegisterAfter<CivHooks::CvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const>(host, &AfterCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const);CivRegisterReplace<CivHooks::CvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const>(host, &ReplaceCvCity_getHurryCost_with_HurryTypes_bool_BuildingTypes_bool_const);

Code

7505int CvCity::getHurryCost(HurryTypes eHurry, bool bExtra, BuildingTypes eBuilding, bool bIgnoreNew) const7506{7507	VALIDATE_OBJECT7508	int iProductionLeft = getProductionNeeded(eBuilding) - m_pCityBuildings->GetBuildingProduction(eBuilding);75097510	return getHurryCost(bExtra, iProductionLeft, getHurryCostModifier(eHurry, eBuilding, bIgnoreNew), getProductionModifier(eBuilding));7511}

Calls

Called by