Exemplo n.º 1
0
 private void OnBadShipsExploded()
 {
     if (BadShipsExploded != null)
     {
         BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs {
         });
     }
 }
 private void OnBadShipsExploded()
 {
     if (BadShipsExploded != null)
     {
         BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs {
             NumberOfExplodedBadShips = _numberOfBadShips
         });
     }
 }
 private void OnBadShipsExploded(int numberOfBadShipsDestroyed)
 {
     if (BadShipsExploded != null)
     {
         BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs {
             NumberOfExplodedBadShips = numberOfBadShipsDestroyed
         });
     }
 }
Exemplo n.º 4
0
 public void OnBadShipsExploded()
 {
     if (BadShipsExploded != null)
     {
         BadShipsExploded.Invoke(this,
                                 new BadShipsExplodedEventArgs()
         {
             NumberOfExplodedBadShips = _numberOfBadShips--
         });
     }
 }
Exemplo n.º 5
0
 public void EnemyShipsDestroyed(int numberOfBadShipsDestroyed)
 {
     if (BadShipsExploded != null)
     {
         BadShipsExploded.Invoke(this,
                                 new BadShipsExplodedEventArgs()
         {
             NumberOfExplodedBadShips = numberOfBadShipsDestroyed
         });
     }
 }
Exemplo n.º 6
0
        private void OnBadShipsExploded()
        {
            _numberOfBadShips--;

            if (BadShipsExploded != null)
            {
                BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs {
                    badShipExplode = _numberOfBadShips
                });
            }
        }
 private void OnBadShipsExploded(int numberOfExplodedBadShips)
 {
     BadShipsExploded?.Invoke(this, new BadShipsExplodedEventArgs {
         NumberOfExplodedBadShips = numberOfExplodedBadShips, NumberOfBadShipsAfterCasualties = _NumberOfBadShips
     });
 }