Bazaar developer reference

CvPlayer::changeTotalLand(int)

Defined in
CvPlayer.cpp, line 10294
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeTotalLand

Hooks

static bool BeforeCvPlayer_changeTotalLand(CvPlayer* self, int iChange);static void AfterCvPlayer_changeTotalLand(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeTotalLand(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeTotalLand>(host, &BeforeCvPlayer_changeTotalLand);CivRegisterAfter<CivHooks::CvPlayer_changeTotalLand>(host, &AfterCvPlayer_changeTotalLand);CivRegisterReplace<CivHooks::CvPlayer_changeTotalLand>(host, &ReplaceCvPlayer_changeTotalLand);

Code

10294void CvPlayer::changeTotalLand(int iChange)10295{10296	m_iTotalLand = (m_iTotalLand + iChange);10297	CvAssert(getTotalLand() >= 0);10298}

Calls

Called by