Bazaar developer reference

CvGame::updateCitySight(bool)

Defined in
CvGame.cpp, line 1824
Class
CvGame
Hook name
CivHooks::CvGame_updateCitySight

Hooks

static bool BeforeCvGame_updateCitySight(CvGame* self, bool bIncrement);static void AfterCvGame_updateCitySight(CvGame* self, bool bIncrement);static void ReplaceCvGame_updateCitySight(void (*original)(CvGame*, bool), CvGame* self, bool bIncrement);CivRegisterBefore<CivHooks::CvGame_updateCitySight>(host, &BeforeCvGame_updateCitySight);CivRegisterAfter<CivHooks::CvGame_updateCitySight>(host, &AfterCvGame_updateCitySight);CivRegisterReplace<CivHooks::CvGame_updateCitySight>(host, &ReplaceCvGame_updateCitySight);

Code

1824void CvGame::updateCitySight(bool bIncrement)1825{1826	int iI;18271828	for(iI = 0; iI < MAX_PLAYERS; iI++)1829	{1830		CvPlayerAI& kPlayer = GET_PLAYER((PlayerTypes)iI);1831		if(kPlayer.isAlive())1832		{1833			kPlayer.updateCitySight(bIncrement);1834		}1835	}1836}

Calls