Bazaar developer reference

CvPromotionEntry::IsLeader() const

Defined in
CvPromotionClasses.cpp, line 1430
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsLeader

Hooks

static bool BeforeCvPromotionEntry_IsLeader(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsLeader(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsLeader(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsLeader>(host, &BeforeCvPromotionEntry_IsLeader);CivRegisterAfter<CivHooks::CvPromotionEntry_IsLeader>(host, &AfterCvPromotionEntry_IsLeader);CivRegisterReplace<CivHooks::CvPromotionEntry_IsLeader>(host, &ReplaceCvPromotionEntry_IsLeader);

Code

1429/// Accessor: Does this unit have a warlord attached to it?1430bool CvPromotionEntry::IsLeader() const1431{1432	return m_bLeader;1433}

Called by