예제 #1
0
 public float DistanceTo(Pathfinding.IPoint pPoint)
 {
     if (pPoint is TileNode)
     {
         TileNode otherNode = pPoint as TileNode;
         return(this.worldPosition.DistanceTo(otherNode.worldPosition));
     }
     else
     {
         throw new NotImplementedException();
     }
 }
예제 #2
0
 public override float DistanceTo(Pathfinding.IPoint pPoint)
 {
     if (pPoint is TileNode)
     {
         PointTileNode otherNode = pPoint as PointTileNode;
         return(worldPoint.EuclidianDistanceTo(otherNode.worldPoint));
     }
     else
     {
         throw new NotImplementedException();
     }
 }
예제 #3
0
 public virtual float DistanceTo(Pathfinding.IPoint pPoint)
 {
     if (pPoint is TileNode)
     {
         TileNode otherNode = pPoint as TileNode;
         return(localPoint.EuclidianDistanceTo(otherNode.localPoint));
     }
     else
     {
         throw new NotImplementedException();
     }
 }