Bazaar developer reference

CvTeam::isDefensivePactTradingAllowedWithTeam(TeamTypes) const

Defined in
CvTeam.cpp, line 3089
Class
CvTeam
Hook name
CivHooks::CvTeam_isDefensivePactTradingAllowedWithTeam

Hooks

static bool BeforeCvTeam_isDefensivePactTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static void AfterCvTeam_isDefensivePactTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static bool ReplaceCvTeam_isDefensivePactTradingAllowedWithTeam(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvTeam_isDefensivePactTradingAllowedWithTeam>(host, &BeforeCvTeam_isDefensivePactTradingAllowedWithTeam);CivRegisterAfter<CivHooks::CvTeam_isDefensivePactTradingAllowedWithTeam>(host, &AfterCvTeam_isDefensivePactTradingAllowedWithTeam);CivRegisterReplace<CivHooks::CvTeam_isDefensivePactTradingAllowedWithTeam>(host, &ReplaceCvTeam_isDefensivePactTradingAllowedWithTeam);

Code

3089bool CvTeam::isDefensivePactTradingAllowedWithTeam(TeamTypes eTeam) const3090{3091	return HasEmbassyAtTeam(eTeam) && GET_TEAM(eTeam).HasEmbassyAtTeam(m_eID) && isDefensivePactTradingAllowed();3092}

Calls

Called by