Bazaar developer reference

CvTeam::isDefensivePactTradingAllowed() const

Defined in
CvTeam.cpp, line 3083
Class
CvTeam
Hook name
CivHooks::CvTeam_isDefensivePactTradingAllowed

Hooks

static bool BeforeCvTeam_isDefensivePactTradingAllowed(const CvTeam* self, bool& result);static void AfterCvTeam_isDefensivePactTradingAllowed(const CvTeam* self, bool& result);static bool ReplaceCvTeam_isDefensivePactTradingAllowed(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_isDefensivePactTradingAllowed>(host, &BeforeCvTeam_isDefensivePactTradingAllowed);CivRegisterAfter<CivHooks::CvTeam_isDefensivePactTradingAllowed>(host, &AfterCvTeam_isDefensivePactTradingAllowed);CivRegisterReplace<CivHooks::CvTeam_isDefensivePactTradingAllowed>(host, &ReplaceCvTeam_isDefensivePactTradingAllowed);

Code

3083bool CvTeam::isDefensivePactTradingAllowed() const3084{3085	return (getDefensivePactTradingAllowedCount() > 0);3086}

Calls

Called by