Bazaar developer reference

CvTeam::changeTotalLand(int)

Defined in
CvTeam.cpp, line 2866
Class
CvTeam
Hook name
CivHooks::CvTeam_changeTotalLand

Hooks

static bool BeforeCvTeam_changeTotalLand(CvTeam* self, int iChange);static void AfterCvTeam_changeTotalLand(CvTeam* self, int iChange);static void ReplaceCvTeam_changeTotalLand(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changeTotalLand>(host, &BeforeCvTeam_changeTotalLand);CivRegisterAfter<CivHooks::CvTeam_changeTotalLand>(host, &AfterCvTeam_changeTotalLand);CivRegisterReplace<CivHooks::CvTeam_changeTotalLand>(host, &ReplaceCvTeam_changeTotalLand);

Code

2866void CvTeam::changeTotalLand(int iChange)2867{2868	m_iTotalLand = (m_iTotalLand + iChange);2869	CvAssert(getTotalLand() >= 0);2870}

Called by