Bazaar developer reference

CvTeam::IsResearchAgreementTradingAllowed() const

Defined in
CvTeam.cpp, line 3110
Class
CvTeam
Hook name
CivHooks::CvTeam_IsResearchAgreementTradingAllowed

Hooks

static bool BeforeCvTeam_IsResearchAgreementTradingAllowed(const CvTeam* self, bool& result);static void AfterCvTeam_IsResearchAgreementTradingAllowed(const CvTeam* self, bool& result);static bool ReplaceCvTeam_IsResearchAgreementTradingAllowed(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_IsResearchAgreementTradingAllowed>(host, &BeforeCvTeam_IsResearchAgreementTradingAllowed);CivRegisterAfter<CivHooks::CvTeam_IsResearchAgreementTradingAllowed>(host, &AfterCvTeam_IsResearchAgreementTradingAllowed);CivRegisterReplace<CivHooks::CvTeam_IsResearchAgreementTradingAllowed>(host, &ReplaceCvTeam_IsResearchAgreementTradingAllowed);

Code

3110bool CvTeam::IsResearchAgreementTradingAllowed() const3111{3112	return (GetResearchAgreementTradingAllowedCount() > 0);3113}

Calls

Called by