Exemplo n.º 1
0
 private void GameOverEventHandler(object sender, LocationEventArgs e)
 {
     pcbHitPoints.WriteNumberMessages(currentSpaceQuestGameManager.GoodSpaceShipHitPoints, "Your hit points:");
     currentSpaceQuestGameManager.GoodSpaceShipHitPoints = INITIAL_HIT_POINTS;
     BAD_SHIP_SPEED = INITIAL_BAD_SHIP_SPEED;
     _goodSpaceShip.Explosion();
     lblNewGame.Visible = true;
     foreach (Spaceship s in _badShipsLst)
     {
         s.MoveSpaceShipNow -= MoveSpaceShipNowEventHandler;
         SpaceShipToUpperLocation(s);
     }
     this.pcbMessages.SendToBack();
 }
Exemplo n.º 2
0
 public void GoodSpaceShipDestroyedEventHandler(object sender, LocationEventArgs e)
 {
     GoodSpaceShipDestroyed?.Invoke(sender, e);
 }