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
- CvAIOperationNavalBombardment::FindBestTarget()
- CvAIOperationNavalSuperiority::FindBestTarget()
- UIPathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvEconomicAI::DoReconState()
- CvHomelandAI::ExecuteExplorerMoves()
- CvMilitaryAI::GetCoastalPlotAdjacentToTarget(CvPlot *, CvArmyAI *) const
- CvPlot::isValidDomainForAction(const CvUnit &) const
- CvPlot::isTerraFirma(const CvUnit *) const
- CvTacticalAnalysisMap::PopulateCell(int, CvPlot *)
- CvGameTrade::GetPlotAdjacentToWater(CvPlot *, CvPlot *)
- CvUnit::GetBaseRangedCombatStrength() const
- CvUnit::GetRange() const
- CvUnit::canDisembarkOnto(const CvPlot &, bool) const
- CvUnit::canEmbark(const CvPlot *) const
- CvUnit::canEmbarkOnto(const CvPlot &, const CvPlot &, bool, bool) const
- CvUnit::canEnterTerrain(const CvPlot &, byte) const
- CvUnit::canPlunderTradeRoute(const CvPlot *, bool) const