Bazaar developer reference

CvMap::updateSight(bool)

Defined in
CvMap.cpp, line 625
Class
CvMap
Hook name
CivHooks::CvMap_updateSight

Hooks

static bool BeforeCvMap_updateSight(CvMap* self, bool bIncrement);static void AfterCvMap_updateSight(CvMap* self, bool bIncrement);static void ReplaceCvMap_updateSight(void (*original)(CvMap*, bool), CvMap* self, bool bIncrement);CivRegisterBefore<CivHooks::CvMap_updateSight>(host, &BeforeCvMap_updateSight);CivRegisterAfter<CivHooks::CvMap_updateSight>(host, &AfterCvMap_updateSight);CivRegisterReplace<CivHooks::CvMap_updateSight>(host, &ReplaceCvMap_updateSight);

Code

625void CvMap::updateSight(bool bIncrement)626{627	int iI;628629	for(iI = 0; iI < numPlots(); iI++)630	{631		plotByIndexUnchecked(iI)->updateSight(bIncrement);632	}633}

Calls

Called by