Bazaar developer reference

CvMap::setAllPlotTypes(PlotTypes)

Defined in
CvMap.cpp, line 551
Class
CvMap
Hook name
CivHooks::CvMap_setAllPlotTypes

Hooks

static bool BeforeCvMap_setAllPlotTypes(CvMap* self, PlotTypes ePlotType);static void AfterCvMap_setAllPlotTypes(CvMap* self, PlotTypes ePlotType);static void ReplaceCvMap_setAllPlotTypes(void (*original)(CvMap*, PlotTypes), CvMap* self, PlotTypes ePlotType);CivRegisterBefore<CivHooks::CvMap_setAllPlotTypes>(host, &BeforeCvMap_setAllPlotTypes);CivRegisterAfter<CivHooks::CvMap_setAllPlotTypes>(host, &AfterCvMap_setAllPlotTypes);CivRegisterReplace<CivHooks::CvMap_setAllPlotTypes>(host, &ReplaceCvMap_setAllPlotTypes);

Code

551void CvMap::setAllPlotTypes(PlotTypes ePlotType)552{553554	for(int i=0; i<numPlots(); i++)555	{556		plotByIndexUnchecked(i)->setPlotType(ePlotType, false, false);557	}558559	recalculateAreas();560}

Calls