Example #1
0
        protected override bool CheckTerrainCompatability()
        {
            LandType landStartPoint = MapObject.CheckLandType(this.StartPointX, this.StartPointY);
            LandType landEndPoint   = MapObject.CheckLandType(this.EndPointX, this.EndPointY);

            return((landStartPoint == LandType.Mainland || landStartPoint == LandType.Shore) &&
                   (landEndPoint == LandType.Mainland || landEndPoint == LandType.Shore));
        }
Example #2
0
        protected override bool CheckTerrainCompatability()
        {
            LandType land = MapObject.CheckLandType(this.NodeX, this.NodeY);

            return(land == LandType.Mainland || land == LandType.Shore);
        }