示例#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
         });
     }
 }