Bazaar developer reference

CvTechEntry::IsDefensivePactTradingAllowed() const

Defined in
CvTechClasses.cpp, line 436
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_IsDefensivePactTradingAllowed

Hooks

static bool BeforeCvTechEntry_IsDefensivePactTradingAllowed(const CvTechEntry* self, bool& result);static void AfterCvTechEntry_IsDefensivePactTradingAllowed(const CvTechEntry* self, bool& result);static bool ReplaceCvTechEntry_IsDefensivePactTradingAllowed(bool (*original)(const CvTechEntry*), const CvTechEntry* self);CivRegisterBefore<CivHooks::CvTechEntry_IsDefensivePactTradingAllowed>(host, &BeforeCvTechEntry_IsDefensivePactTradingAllowed);CivRegisterAfter<CivHooks::CvTechEntry_IsDefensivePactTradingAllowed>(host, &AfterCvTechEntry_IsDefensivePactTradingAllowed);CivRegisterReplace<CivHooks::CvTechEntry_IsDefensivePactTradingAllowed>(host, &ReplaceCvTechEntry_IsDefensivePactTradingAllowed);

Code

435/// Can you form defensive treaties?436bool CvTechEntry::IsDefensivePactTradingAllowed() const437{438	return m_bDefensivePactTradingAllowed;439}

Called by