Bazaar developer reference

CvTraitEntry::GetGreatGeneralExtraBonus() const

Defined in
CvTraitClasses.cpp, line 231
Class
CvTraitEntry
Hook name
CivHooks::CvTraitEntry_GetGreatGeneralExtraBonus

Hooks

static bool BeforeCvTraitEntry_GetGreatGeneralExtraBonus(const CvTraitEntry* self, int& result);static void AfterCvTraitEntry_GetGreatGeneralExtraBonus(const CvTraitEntry* self, int& result);static int ReplaceCvTraitEntry_GetGreatGeneralExtraBonus(int (*original)(const CvTraitEntry*), const CvTraitEntry* self);CivRegisterBefore<CivHooks::CvTraitEntry_GetGreatGeneralExtraBonus>(host, &BeforeCvTraitEntry_GetGreatGeneralExtraBonus);CivRegisterAfter<CivHooks::CvTraitEntry_GetGreatGeneralExtraBonus>(host, &AfterCvTraitEntry_GetGreatGeneralExtraBonus);CivRegisterReplace<CivHooks::CvTraitEntry_GetGreatGeneralExtraBonus>(host, &ReplaceCvTraitEntry_GetGreatGeneralExtraBonus);

Code

230/// Accessor:: Great general additional combat bonus231int CvTraitEntry::GetGreatGeneralExtraBonus() const232{233	return m_iGreatGeneralExtraBonus;234}

Called by