Bazaar developer reference

CvPromotionEntry::IsOnlyDefensive() const

Defined in
CvPromotionClasses.cpp, line 1606
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsOnlyDefensive

Hooks

static bool BeforeCvPromotionEntry_IsOnlyDefensive(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsOnlyDefensive(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsOnlyDefensive(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsOnlyDefensive>(host, &BeforeCvPromotionEntry_IsOnlyDefensive);CivRegisterAfter<CivHooks::CvPromotionEntry_IsOnlyDefensive>(host, &AfterCvPromotionEntry_IsOnlyDefensive);CivRegisterReplace<CivHooks::CvPromotionEntry_IsOnlyDefensive>(host, &ReplaceCvPromotionEntry_IsOnlyDefensive);

Code

1605/// Accessor: Unable to attack enemy units1606bool CvPromotionEntry::IsOnlyDefensive() const1607{1608	return m_bOnlyDefensive;1609}

Called by