Bazaar developer reference

CvTechEntry::IsFreePromotion(int) const

Defined in
CvTechClasses.cpp, line 488
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_IsFreePromotion

Hooks

static bool BeforeCvTechEntry_IsFreePromotion(const CvTechEntry* self, int i, int& result);static void AfterCvTechEntry_IsFreePromotion(const CvTechEntry* self, int i, int& result);static int ReplaceCvTechEntry_IsFreePromotion(int (*original)(const CvTechEntry*, int), const CvTechEntry* self, int i);CivRegisterBefore<CivHooks::CvTechEntry_IsFreePromotion>(host, &BeforeCvTechEntry_IsFreePromotion);CivRegisterAfter<CivHooks::CvTechEntry_IsFreePromotion>(host, &AfterCvTechEntry_IsFreePromotion);CivRegisterReplace<CivHooks::CvTechEntry_IsFreePromotion>(host, &ReplaceCvTechEntry_IsFreePromotion);

Code

487/// Grants free promotion?488int CvTechEntry::IsFreePromotion(int i) const489{490	return m_pabFreePromotion ? m_pabFreePromotion[i] : -1;491}

Called by