Ejemplo n.º 1
0
        public void GoodSpaceShipDestryedEventHandler(object sender, LocationEventArgs e)
        {
            Console.WriteLine("Good spaceship destroyed - Game Over!");

            Console.WriteLine($"The ship has been destroyed by: {sender} The ship position reset to {e.X} and {e.Y}");
        }
Ejemplo n.º 2
0
 public void GoodSpaceShipLocationChangedEventHandler(object sender, LocationEventArgs e)
 {
     Console.WriteLine($"The ship has been moved by:{sender} The ship is now at{e.X} and {e.Y}");
 }