Example #1
0
 public TileObject getResource()
 {
     if (here != null)
         if ((int)here.type <= 3) {
             TileObject buf = here;
             here = null;
             return buf;
         }
     return null;
 }
Example #2
0
        public void update(float delta)
        {
            if (here as Bomb != null)
                ((Bomb)here).update(delta);

            if (here as Fire != null)
                if (((Fire)here).update(delta))
                    here = null;
        }
Example #3
0
 public bool tryToPlace(TileObject here)
 {
     if (here == null) return true;
     if(this.here == null && (!playerHere || (here.type == TileType.Door) || (here.type == TileType.Bomb)) && !isWall) {
         this.here = here;
         return true;
     }
     return false;
 }