Bazaar developer reference

CvUnitEntry::GetLeaderPromotion() const

Defined in
CvUnitClasses.cpp, line 1216
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetLeaderPromotion

Hooks

static bool BeforeCvUnitEntry_GetLeaderPromotion(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetLeaderPromotion(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetLeaderPromotion(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetLeaderPromotion>(host, &BeforeCvUnitEntry_GetLeaderPromotion);CivRegisterAfter<CivHooks::CvUnitEntry_GetLeaderPromotion>(host, &AfterCvUnitEntry_GetLeaderPromotion);CivRegisterReplace<CivHooks::CvUnitEntry_GetLeaderPromotion>(host, &ReplaceCvUnitEntry_GetLeaderPromotion);

Code

1215/// Is this a great leader (general) promotion unit?1216int CvUnitEntry::GetLeaderPromotion() const1217{1218	return m_iLeaderPromotion;1219}

Called by