Bazaar developer reference

CvPlayer::updateCitySight(bool)

Defined in
CvPlayer.cpp, line 5226
Class
CvPlayer
Hook name
CivHooks::CvPlayer_updateCitySight

Hooks

static bool BeforeCvPlayer_updateCitySight(CvPlayer* self, bool bIncrement);static void AfterCvPlayer_updateCitySight(CvPlayer* self, bool bIncrement);static void ReplaceCvPlayer_updateCitySight(void (*original)(CvPlayer*, bool), CvPlayer* self, bool bIncrement);CivRegisterBefore<CivHooks::CvPlayer_updateCitySight>(host, &BeforeCvPlayer_updateCitySight);CivRegisterAfter<CivHooks::CvPlayer_updateCitySight>(host, &AfterCvPlayer_updateCitySight);CivRegisterReplace<CivHooks::CvPlayer_updateCitySight>(host, &ReplaceCvPlayer_updateCitySight);

Code

5226void CvPlayer::updateCitySight(bool bIncrement)5227{5228	CvCity* pLoopCity;5229	int iLoop;52305231	for(pLoopCity = firstCity(&iLoop); pLoopCity != NULL; pLoopCity = nextCity(&iLoop))5232	{5233		pLoopCity->plot()->updateSight(bIncrement);5234	}5235}

Calls

Called by