Bazaar developer reference

CvTeam::IsResearchAgreementTradingAllowedWithTeam(TeamTypes) const

Defined in
CvTeam.cpp, line 3116
Class
CvTeam
Hook name
CivHooks::CvTeam_IsResearchAgreementTradingAllowedWithTeam

Hooks

static bool BeforeCvTeam_IsResearchAgreementTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static void AfterCvTeam_IsResearchAgreementTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static bool ReplaceCvTeam_IsResearchAgreementTradingAllowedWithTeam(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvTeam_IsResearchAgreementTradingAllowedWithTeam>(host, &BeforeCvTeam_IsResearchAgreementTradingAllowedWithTeam);CivRegisterAfter<CivHooks::CvTeam_IsResearchAgreementTradingAllowedWithTeam>(host, &AfterCvTeam_IsResearchAgreementTradingAllowedWithTeam);CivRegisterReplace<CivHooks::CvTeam_IsResearchAgreementTradingAllowedWithTeam>(host, &ReplaceCvTeam_IsResearchAgreementTradingAllowedWithTeam);

Code

3116bool CvTeam::IsResearchAgreementTradingAllowedWithTeam(TeamTypes eTeam) const3117{3118	return HasEmbassyAtTeam(eTeam) && IsResearchAgreementTradingAllowed();3119}

Calls

Called by