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"; } }
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(); }
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"; } }