Bazaar developer reference

CvTeam::isOpenBordersTradingAllowedWithTeam(TeamTypes) const

Defined in
CvTeam.cpp, line 3062
Class
CvTeam
Hook name
CivHooks::CvTeam_isOpenBordersTradingAllowedWithTeam

Hooks

static bool BeforeCvTeam_isOpenBordersTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static void AfterCvTeam_isOpenBordersTradingAllowedWithTeam(const CvTeam* self, TeamTypes eTeam, bool& result);static bool ReplaceCvTeam_isOpenBordersTradingAllowedWithTeam(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvTeam_isOpenBordersTradingAllowedWithTeam>(host, &BeforeCvTeam_isOpenBordersTradingAllowedWithTeam);CivRegisterAfter<CivHooks::CvTeam_isOpenBordersTradingAllowedWithTeam>(host, &AfterCvTeam_isOpenBordersTradingAllowedWithTeam);CivRegisterReplace<CivHooks::CvTeam_isOpenBordersTradingAllowedWithTeam>(host, &ReplaceCvTeam_isOpenBordersTradingAllowedWithTeam);

Code

3062bool CvTeam::isOpenBordersTradingAllowedWithTeam(TeamTypes eTeam) const3063{3064	return HasEmbassyAtTeam(eTeam) && isOpenBordersTradingAllowed();3065}

Calls

Called by