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 }); } }
public void OnBadShipsExploded() { if (BadShipsExploded != null) { BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs() { NumberOfExplodedBadShips = _numberOfBadShips-- }); } }
public void EnemyShipsDestroyed(int numberOfBadShipsDestroyed) { if (BadShipsExploded != null) { BadShipsExploded.Invoke(this, new BadShipsExplodedEventArgs() { NumberOfExplodedBadShips = numberOfBadShipsDestroyed }); } }
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 }); }