Bazaar developer reference

CvCity::getHurryGold(HurryTypes, int, int) const

Defined in
CvCity.cpp, line 7545
Class
CvCity
Hook name
CivHooks::CvCity_getHurryGold

Hooks

static bool BeforeCvCity_getHurryGold(const CvCity* self, HurryTypes arg0, int arg1, int arg2, int& result);static void AfterCvCity_getHurryGold(const CvCity* self, HurryTypes arg0, int arg1, int arg2, int& result);static int ReplaceCvCity_getHurryGold(int (*original)(const CvCity*, HurryTypes, int, int), const CvCity* self, HurryTypes arg0, int arg1, int arg2);CivRegisterBefore<CivHooks::CvCity_getHurryGold>(host, &BeforeCvCity_getHurryGold);CivRegisterAfter<CivHooks::CvCity_getHurryGold>(host, &AfterCvCity_getHurryGold);CivRegisterReplace<CivHooks::CvCity_getHurryGold>(host, &ReplaceCvCity_getHurryGold);

Code

7544/// Amount of Gold required to hurry Production in a City.  Full cost is the original Production cost of whatever we're rushing - the more expensive the ORIGINAL cost, the more it also costs to Gold rush7545int CvCity::getHurryGold(HurryTypes /*eHurry*/, int /*iHurryCost*/, int /*iFullCost*/) const7546{7547	VALIDATE_OBJECT75487549	// This should not be used any more. Check GetPurchaseCostFromProduction()7550	return 0;7551}

Called by