Bazaar developer reference

CvPolicyEntry::IsFreePromotion(int) const

Defined in
CvPolicyClasses.cpp, line 1957
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_IsFreePromotion

Hooks

static bool BeforeCvPolicyEntry_IsFreePromotion(const CvPolicyEntry* self, int i, int& result);static void AfterCvPolicyEntry_IsFreePromotion(const CvPolicyEntry* self, int i, int& result);static int ReplaceCvPolicyEntry_IsFreePromotion(int (*original)(const CvPolicyEntry*, int), const CvPolicyEntry* self, int i);CivRegisterBefore<CivHooks::CvPolicyEntry_IsFreePromotion>(host, &BeforeCvPolicyEntry_IsFreePromotion);CivRegisterAfter<CivHooks::CvPolicyEntry_IsFreePromotion>(host, &AfterCvPolicyEntry_IsFreePromotion);CivRegisterReplace<CivHooks::CvPolicyEntry_IsFreePromotion>(host, &ReplaceCvPolicyEntry_IsFreePromotion);

Code

1956/// Do all Units get Promotion ID i?1957int CvPolicyEntry::IsFreePromotion(int i) const1958{1959	return m_pabFreePromotion ? m_pabFreePromotion[i] : -1;1960}

Called by