Пример #1
0
 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
         });
     }
 }
Пример #3
0
 //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
         });
     }
 }