private void OnGoodSpaceShipHPChanged() { if (GoodSpaceShipHPChanged != null) { GoodSpaceShipHPChanged.Invoke(this, new PointsEventArgs { HitPoints = _goodSpaceShipHitPoints }); } }
public void GoodSpaceShipGotDamaged(int damage) { if (GoodSpaceShipHPChanged != null) { GoodSpaceShipHPChanged.Invoke(this, new PointsEventArgs() { HitPoints = damage }); } }
public void GoodSpaceShipGotExtraHP(int extra) { if (GoodSpaceShipHPChanged != null) { GoodSpaceShipHPChanged.Invoke(this, new PointsEventArgs() { HitPoints = _goodSpaceShipHitPoints + extra }); } }
public void GoodSpaceShipHPChangedEventHandler(object sender, PointEventArgs e) { GoodSpaceShipHPChanged?.Invoke(sender, e); }