Bazaar developer reference

CvPlot::HasTerrain(TerrainTypes) const

Defined in
CvPlot.cpp, line 11931
Class
CvPlot
Hook name
CivHooks::CvPlot_HasTerrain

Hooks

static bool BeforeCvPlot_HasTerrain(const CvPlot* self, TerrainTypes iTerrainType, bool& result);static void AfterCvPlot_HasTerrain(const CvPlot* self, TerrainTypes iTerrainType, bool& result);static bool ReplaceCvPlot_HasTerrain(bool (*original)(const CvPlot*, TerrainTypes), const CvPlot* self, TerrainTypes iTerrainType);CivRegisterBefore<CivHooks::CvPlot_HasTerrain>(host, &BeforeCvPlot_HasTerrain);CivRegisterAfter<CivHooks::CvPlot_HasTerrain>(host, &AfterCvPlot_HasTerrain);CivRegisterReplace<CivHooks::CvPlot_HasTerrain>(host, &ReplaceCvPlot_HasTerrain);

Code

11931bool CvPlot::HasTerrain(TerrainTypes iTerrainType) const11932{11933	return (getTerrainType() == iTerrainType);11934}

Calls

Called by