Bazaar developer reference

CvPromotionEntry::IsIgnoreGreatGeneralBenefit() const

Defined in
CvPromotionClasses.cpp, line 1722
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsIgnoreGreatGeneralBenefit

Hooks

static bool BeforeCvPromotionEntry_IsIgnoreGreatGeneralBenefit(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsIgnoreGreatGeneralBenefit(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsIgnoreGreatGeneralBenefit(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsIgnoreGreatGeneralBenefit>(host, &BeforeCvPromotionEntry_IsIgnoreGreatGeneralBenefit);CivRegisterAfter<CivHooks::CvPromotionEntry_IsIgnoreGreatGeneralBenefit>(host, &AfterCvPromotionEntry_IsIgnoreGreatGeneralBenefit);CivRegisterReplace<CivHooks::CvPromotionEntry_IsIgnoreGreatGeneralBenefit>(host, &ReplaceCvPromotionEntry_IsIgnoreGreatGeneralBenefit);

Code

1721/// Accessor: Should this infantry ignore benefits from great generals1722bool CvPromotionEntry::IsIgnoreGreatGeneralBenefit() const1723{1724	return m_bIgnoreGreatGeneralBenefit;1725}

Called by