Bazaar developer reference

CvPromotionEntry::IsSapper() const

Defined in
CvPromotionClasses.cpp, line 1734
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsSapper

Hooks

static bool BeforeCvPromotionEntry_IsSapper(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsSapper(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsSapper(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsSapper>(host, &BeforeCvPromotionEntry_IsSapper);CivRegisterAfter<CivHooks::CvPromotionEntry_IsSapper>(host, &AfterCvPromotionEntry_IsSapper);CivRegisterReplace<CivHooks::CvPromotionEntry_IsSapper>(host, &ReplaceCvPromotionEntry_IsSapper);

Code

1733/// Accessor: Is this a Sapper unit (when next to a city, provides city attack bonus to nearby units)?1734bool CvPromotionEntry::IsSapper() const1735{1736	return m_bSapper;1737}

Called by