public TileObject getResource() { if (here != null) if ((int)here.type <= 3) { TileObject buf = here; here = null; return buf; } return null; }
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; }
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; }