Bazaar developer reference

CvTeam::changePermanentAllianceTradingCount(int)

Defined in
CvTeam.cpp, line 3166
Class
CvTeam
Hook name
CivHooks::CvTeam_changePermanentAllianceTradingCount

Hooks

static bool BeforeCvTeam_changePermanentAllianceTradingCount(CvTeam* self, int iChange);static void AfterCvTeam_changePermanentAllianceTradingCount(CvTeam* self, int iChange);static void ReplaceCvTeam_changePermanentAllianceTradingCount(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changePermanentAllianceTradingCount>(host, &BeforeCvTeam_changePermanentAllianceTradingCount);CivRegisterAfter<CivHooks::CvTeam_changePermanentAllianceTradingCount>(host, &AfterCvTeam_changePermanentAllianceTradingCount);CivRegisterReplace<CivHooks::CvTeam_changePermanentAllianceTradingCount>(host, &ReplaceCvTeam_changePermanentAllianceTradingCount);

Code

3166void CvTeam::changePermanentAllianceTradingCount(int iChange)3167{3168	m_iPermanentAllianceTradingCount = (m_iPermanentAllianceTradingCount + iChange);3169	CvAssert(getPermanentAllianceTradingCount() >= 0);3170}

Called by