Bazaar developer reference

CvPlayer::updateCityPlotYield()

Defined in
CvPlayer.cpp, line 5213
Class
CvPlayer
Hook name
CivHooks::CvPlayer_updateCityPlotYield

Hooks

static bool BeforeCvPlayer_updateCityPlotYield(CvPlayer* self);static void AfterCvPlayer_updateCityPlotYield(CvPlayer* self);static void ReplaceCvPlayer_updateCityPlotYield(void (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_updateCityPlotYield>(host, &BeforeCvPlayer_updateCityPlotYield);CivRegisterAfter<CivHooks::CvPlayer_updateCityPlotYield>(host, &AfterCvPlayer_updateCityPlotYield);CivRegisterReplace<CivHooks::CvPlayer_updateCityPlotYield>(host, &ReplaceCvPlayer_updateCityPlotYield);

Code

5213void CvPlayer::updateCityPlotYield()5214{5215	CvCity* pLoopCity;5216	int iLoop;52175218	for(pLoopCity = firstCity(&iLoop); pLoopCity != NULL; pLoopCity = nextCity(&iLoop))5219	{5220		pLoopCity->plot()->updateYield();5221	}5222}

Calls