Exemple #1
0
 public Bomb PutABomb()
 {
     Bomb b = null;
     if(AvailableBombCount >= 1){
         b = new Bomb(X,Y,BombPower,this);
         AvailableBombCount--;
     }
     return b;
 }
Exemple #2
0
 public Player BombExploded(Bomb b)
 {
     if(b.Owner == this)
     {
         AvailableBombCount++;
     }
     return this;
 }