public void GoodSpaceShipLocationChangedEventHandler(object sender, LocationEventArgs e) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine($"\t\tThe ship has been moved by {sender}"); Console.WriteLine($"\t\tThe ship is now at {e.x} and {e.y} \n"); Console.ResetColor(); Beep.BeeperMovement(); Delay(); }
public void GoodSpaceShipDestroyedEventHandler(object sender, LocationEventArgs e) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Good spaceship destroyed - Game Over!"); Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine($"\t\tThe ship has been destroyed by {sender}"); Console.WriteLine($"\t\tThe ship position reset to {e.x} and {e.y} \n"); Console.ResetColor(); Beep.BeeperGoodShipDestroyed(); ConsoleReset(); }