Bazaar developer reference

CvPolicyEntry::IncludesOneShotFreeUnits() const

Defined in
CvPolicyClasses.cpp, line 1800
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_IncludesOneShotFreeUnits

Hooks

static bool BeforeCvPolicyEntry_IncludesOneShotFreeUnits(const CvPolicyEntry* self, bool& result);static void AfterCvPolicyEntry_IncludesOneShotFreeUnits(const CvPolicyEntry* self, bool& result);static bool ReplaceCvPolicyEntry_IncludesOneShotFreeUnits(bool (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_IncludesOneShotFreeUnits>(host, &BeforeCvPolicyEntry_IncludesOneShotFreeUnits);CivRegisterAfter<CivHooks::CvPolicyEntry_IncludesOneShotFreeUnits>(host, &AfterCvPolicyEntry_IncludesOneShotFreeUnits);CivRegisterReplace<CivHooks::CvPolicyEntry_IncludesOneShotFreeUnits>(host, &ReplaceCvPolicyEntry_IncludesOneShotFreeUnits);

Code

1799/// Are there one shot free units that come with this policy?1800bool CvPolicyEntry::IncludesOneShotFreeUnits() const1801{1802	return m_bIncludesOneShotFreeUnits;1803}

Called by