private void OnGoodSpaceShipHpChanged() { if (GoodSpaceShipHpChanged != null) { GoodSpaceShipHpChanged.Invoke(this, new PointsEventsArgs { HpPoints = _goodSpaceShipHitPoints }); } }
private void OnGoodSpaceShipHpChanged(int hitPoints) { if (GoodSpaceShipHpChanged != null) { GoodSpaceShipHpChanged.Invoke(this, new PointsEventArgs { HitPoins = hitPoints }); } }
//Ship Got Extra Hp public void GoodSpaceShipGotExtraHp(int extraHp) { _goodSpaceShipHitPoints += extraHp; if (GoodSpaceShipHpChanged != null) { Console.Write("WoW !! Your Ship Got Extra Hp!! "); GoodSpaceShipHpChanged.Invoke(this, new PointsEventsArgs { HpPoints = _goodSpaceShipHitPoints }); } }