Bazaar developer reference

CvCity::hurryGold(HurryTypes) const

Defined in
CvCity.cpp, line 7535
Class
CvCity
Hook name
CivHooks::CvCity_hurryGold

Hooks

static bool BeforeCvCity_hurryGold(const CvCity* self, HurryTypes eHurry, int& result);static void AfterCvCity_hurryGold(const CvCity* self, HurryTypes eHurry, int& result);static int ReplaceCvCity_hurryGold(int (*original)(const CvCity*, HurryTypes), const CvCity* self, HurryTypes eHurry);CivRegisterBefore<CivHooks::CvCity_hurryGold>(host, &BeforeCvCity_hurryGold);CivRegisterAfter<CivHooks::CvCity_hurryGold>(host, &AfterCvCity_hurryGold);CivRegisterReplace<CivHooks::CvCity_hurryGold>(host, &ReplaceCvCity_hurryGold);

Code

7535int CvCity::hurryGold(HurryTypes eHurry) const7536{7537	VALIDATE_OBJECT7538	int iFullCost = getProductionNeeded();75397540	return getHurryGold(eHurry, hurryCost(eHurry, false), iFullCost);7541}

Calls

Called by