示例#1
0
        private void bringPlayerBackToLifeWhenThereAreMoreLives()
        {
            this.gameTimer.Stop();
            this.playerShip.Destroyed = true;

            if (this.playerPlayerShipFactory.IsThereAnyLives)
            {
                if (this.playerShip.Destroyed)
                {
                    this.playerShip = this.playerPlayerShipFactory.UseLife();
                    this.addPlayerShipToGame();
                    this.gameTimer.Start();
                }
            }
        }
示例#2
0
 private void initializePlayerShipFactory()
 {
     this.playerPlayerShipFactory = new PlayerShipFactory(3);
     this.playerShip = this.playerPlayerShipFactory.UseLife();
 }