Bazaar developer reference

CvTeam::changeDefensivePactTradingAllowedCount(int)

Defined in
CvTeam.cpp, line 3095
Class
CvTeam
Hook name
CivHooks::CvTeam_changeDefensivePactTradingAllowedCount

Hooks

static bool BeforeCvTeam_changeDefensivePactTradingAllowedCount(CvTeam* self, int iChange);static void AfterCvTeam_changeDefensivePactTradingAllowedCount(CvTeam* self, int iChange);static void ReplaceCvTeam_changeDefensivePactTradingAllowedCount(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changeDefensivePactTradingAllowedCount>(host, &BeforeCvTeam_changeDefensivePactTradingAllowedCount);CivRegisterAfter<CivHooks::CvTeam_changeDefensivePactTradingAllowedCount>(host, &AfterCvTeam_changeDefensivePactTradingAllowedCount);CivRegisterReplace<CivHooks::CvTeam_changeDefensivePactTradingAllowedCount>(host, &ReplaceCvTeam_changeDefensivePactTradingAllowedCount);

Code

3095void CvTeam::changeDefensivePactTradingAllowedCount(int iChange)3096{3097	m_iDefensivePactTradingAllowedCount = (m_iDefensivePactTradingAllowedCount + iChange);3098	CvAssert(getDefensivePactTradingAllowedCount() >= 0);3099}

Called by