Bazaar developer reference

CvTraitEntry::IsAbleToAnnexCityStates() const

Defined in
CvTraitClasses.cpp, line 728
Class
CvTraitEntry
Hook name
CivHooks::CvTraitEntry_IsAbleToAnnexCityStates

Hooks

static bool BeforeCvTraitEntry_IsAbleToAnnexCityStates(const CvTraitEntry* self, bool& result);static void AfterCvTraitEntry_IsAbleToAnnexCityStates(const CvTraitEntry* self, bool& result);static bool ReplaceCvTraitEntry_IsAbleToAnnexCityStates(bool (*original)(const CvTraitEntry*), const CvTraitEntry* self);CivRegisterBefore<CivHooks::CvTraitEntry_IsAbleToAnnexCityStates>(host, &BeforeCvTraitEntry_IsAbleToAnnexCityStates);CivRegisterAfter<CivHooks::CvTraitEntry_IsAbleToAnnexCityStates>(host, &AfterCvTraitEntry_IsAbleToAnnexCityStates);CivRegisterReplace<CivHooks::CvTraitEntry_IsAbleToAnnexCityStates>(host, &ReplaceCvTraitEntry_IsAbleToAnnexCityStates);

Code

727/// Accessor: does this civ have the ability to use gold to annex city states?728bool CvTraitEntry::IsAbleToAnnexCityStates() const729{730	return m_bAbleToAnnexCityStates;731}

Called by