예제 #1
0
 public void SetCurrentOrder(Place loc, Place dest)
 {
     CurrentOrder = new Order(loc, dest);
 }
예제 #2
0
        public static double GetTimeBetweenPlaces(Place a, Place b)
        {
            double time = Math.Sqrt(Math.Pow((a.X - b.X), 2) + Math.Pow((a.Y - b.Y), 2));

            return(time);
        }
 public Order(Place locat, Place dest)
 {
     location    = locat;
     destination = dest;
 }