Bazaar developer reference

CvCity::isFreePromotion(PromotionTypes) const

Defined in
CvCity.cpp, line 11672
Class
CvCity
Hook name
CivHooks::CvCity_isFreePromotion

Hooks

static bool BeforeCvCity_isFreePromotion(const CvCity* self, PromotionTypes eIndex, bool& result);static void AfterCvCity_isFreePromotion(const CvCity* self, PromotionTypes eIndex, bool& result);static bool ReplaceCvCity_isFreePromotion(bool (*original)(const CvCity*, PromotionTypes), const CvCity* self, PromotionTypes eIndex);CivRegisterBefore<CivHooks::CvCity_isFreePromotion>(host, &BeforeCvCity_isFreePromotion);CivRegisterAfter<CivHooks::CvCity_isFreePromotion>(host, &AfterCvCity_isFreePromotion);CivRegisterReplace<CivHooks::CvCity_isFreePromotion>(host, &ReplaceCvCity_isFreePromotion);

Code

11672bool CvCity::isFreePromotion(PromotionTypes eIndex) const11673{11674	VALIDATE_OBJECT11675	return (getFreePromotionCount(eIndex) > 0);11676}

Calls

Called by