Bazaar developer reference

CvTechEntry::IsAllowsDefensiveEmbarking() const

Defined in
CvTechClasses.cpp, line 334
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_IsAllowsDefensiveEmbarking

Hooks

static bool BeforeCvTechEntry_IsAllowsDefensiveEmbarking(const CvTechEntry* self, bool& result);static void AfterCvTechEntry_IsAllowsDefensiveEmbarking(const CvTechEntry* self, bool& result);static bool ReplaceCvTechEntry_IsAllowsDefensiveEmbarking(bool (*original)(const CvTechEntry*), const CvTechEntry* self);CivRegisterBefore<CivHooks::CvTechEntry_IsAllowsDefensiveEmbarking>(host, &BeforeCvTechEntry_IsAllowsDefensiveEmbarking);CivRegisterAfter<CivHooks::CvTechEntry_IsAllowsDefensiveEmbarking>(host, &AfterCvTechEntry_IsAllowsDefensiveEmbarking);CivRegisterReplace<CivHooks::CvTechEntry_IsAllowsDefensiveEmbarking>(host, &ReplaceCvTechEntry_IsAllowsDefensiveEmbarking);

Code

333/// Allows embarked units to defend themselves334bool CvTechEntry::IsAllowsDefensiveEmbarking() const335{336	return m_bAllowsDefensiveEmbarking;337}

Called by