public DroneRetired(RetiredDrone a)
 {
     Type       = EventType.DroneRetired;
     OpenWindow = a.OpenInfoWindow;
     ID         = a.Name;
     Target     = null;
     Time       = TimeKeeper.Chronos.Get();
     if (a.OtherDroneName != null)
     {
         Message = Time + " - " + ID + " retired";
     }
 }
Beispiel #2
0
        public DroneContactLoss(Drone drone)
        {
            var rDrone = new RetiredDrone(drone);

            Type       = EventType.DroneContactLoss;
            OpenWindow = rDrone.OpenInfoWindow;
            ID         = rDrone.Name;
            Target     = rDrone.Location.ToArray();
            Time       = TimeKeeper.Chronos.Get();
            Message    = Time + " - " + ID + " contact lost";
            //drone.DestroySelf(null);
            drone.Delete();
        }
Beispiel #3
0
 public DroneCollision(RetiredDrone a)
 {
     Type       = EventType.Collision;
     OpenWindow = a.OpenInfoWindow;
     ID         = a.Name;
     Target     = a.Location.ToArray();
     Time       = TimeKeeper.Chronos.Get();
     if (a.OtherDroneName != null)
     {
         Message = Time + " - " + ID + " collided with " + a.OtherDroneName;
     }
     else
     {
         Message = Time + " - " + ID + " crashed";
     }
 }