Bazaar developer reference

CvPlayer::SetCityGrowthMod(int)

Defined in
CvPlayer.cpp, line 26470
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetCityGrowthMod

Hooks

static bool BeforeCvPlayer_SetCityGrowthMod(CvPlayer* self, int iValue);static void AfterCvPlayer_SetCityGrowthMod(CvPlayer* self, int iValue);static void ReplaceCvPlayer_SetCityGrowthMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iValue);CivRegisterBefore<CivHooks::CvPlayer_SetCityGrowthMod>(host, &BeforeCvPlayer_SetCityGrowthMod);CivRegisterAfter<CivHooks::CvPlayer_SetCityGrowthMod>(host, &AfterCvPlayer_SetCityGrowthMod);CivRegisterReplace<CivHooks::CvPlayer_SetCityGrowthMod>(host, &ReplaceCvPlayer_SetCityGrowthMod);

Code

26469/// Sets City growth percent mod (i.e. 100 = foodDifference doubled)26470void CvPlayer::SetCityGrowthMod(int iValue)26471{26472	CvAssert(iValue >= 0);26473	m_iCityGrowthMod = iValue;26474}

Calls

Called by