Bazaar developer reference

CvPlayer::changeTotalPopulation(int)

Defined in
CvPlayer.cpp, line 10228
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeTotalPopulation

Hooks

static bool BeforeCvPlayer_changeTotalPopulation(CvPlayer* self, int iChange);static void AfterCvPlayer_changeTotalPopulation(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeTotalPopulation(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeTotalPopulation>(host, &BeforeCvPlayer_changeTotalPopulation);CivRegisterAfter<CivHooks::CvPlayer_changeTotalPopulation>(host, &AfterCvPlayer_changeTotalPopulation);CivRegisterReplace<CivHooks::CvPlayer_changeTotalPopulation>(host, &ReplaceCvPlayer_changeTotalPopulation);

Code

10228void CvPlayer::changeTotalPopulation(int iChange)10229{10230	m_iTotalPopulation = (m_iTotalPopulation + iChange);10231	CvAssert(getTotalPopulation() >= 0);10232}

Calls

Called by