Bazaar developer reference

CvPlot::isShallowWater() const

Defined in
CvPlot.cpp, line 1006
Class
CvPlot
Hook name
CivHooks::CvPlot_isShallowWater

Hooks

static bool BeforeCvPlot_isShallowWater(const CvPlot* self, bool& result);static void AfterCvPlot_isShallowWater(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isShallowWater(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isShallowWater>(host, &BeforeCvPlot_isShallowWater);CivRegisterAfter<CivHooks::CvPlot_isShallowWater>(host, &AfterCvPlot_isShallowWater);CivRegisterReplace<CivHooks::CvPlot_isShallowWater>(host, &ReplaceCvPlot_isShallowWater);

Code

1006bool CvPlot::isShallowWater() const1007{1008	if(isWater())1009	{1010		TerrainTypes eShallowWater = (TerrainTypes) GC.getSHALLOW_WATER_TERRAIN();1011		if(getTerrainType() == eShallowWater)1012		{1013			return true;1014		}1015	}1016	return false;1017}

Calls

Called by