Bazaar developer reference

CvPlayer::ChangeNewCityExtraPopulation(int)

Defined in
CvPlayer.cpp, line 10262
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeNewCityExtraPopulation

Hooks

static bool BeforeCvPlayer_ChangeNewCityExtraPopulation(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeNewCityExtraPopulation(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeNewCityExtraPopulation(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeNewCityExtraPopulation>(host, &BeforeCvPlayer_ChangeNewCityExtraPopulation);CivRegisterAfter<CivHooks::CvPlayer_ChangeNewCityExtraPopulation>(host, &AfterCvPlayer_ChangeNewCityExtraPopulation);CivRegisterReplace<CivHooks::CvPlayer_ChangeNewCityExtraPopulation>(host, &ReplaceCvPlayer_ChangeNewCityExtraPopulation);

Code

10262void CvPlayer::ChangeNewCityExtraPopulation(int iChange)10263{10264	if(iChange != 0)10265	{10266		m_iNewCityExtraPopulation += iChange;10267	}10268}

Calls

Called by