Bazaar developer reference

CvPromotionEntry::IsNotWithUpgrade() const

Defined in
CvPromotionClasses.cpp, line 1418
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsNotWithUpgrade

Hooks

static bool BeforeCvPromotionEntry_IsNotWithUpgrade(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsNotWithUpgrade(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsNotWithUpgrade(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsNotWithUpgrade>(host, &BeforeCvPromotionEntry_IsNotWithUpgrade);CivRegisterAfter<CivHooks::CvPromotionEntry_IsNotWithUpgrade>(host, &AfterCvPromotionEntry_IsNotWithUpgrade);CivRegisterReplace<CivHooks::CvPromotionEntry_IsNotWithUpgrade>(host, &ReplaceCvPromotionEntry_IsNotWithUpgrade);

Code

1417/// Accessor: Is this a promotion that is not given out when a unit is upgrading?1418bool CvPromotionEntry::IsNotWithUpgrade() const1419{1420	return m_bNotWithUpgrade;1421}

Called by