public void setBrick(int offset, MapSite site) { if (offset < Bricks.Length) { Bricks[offset] = site; } }
public Wall(int size) { Bricks = new MapSite[size]; for (int i = 0; i < size; i++) { Bricks[i] = new MapSite(); } }
public void setBrick(int offset, MapSite site) { if(offset < Bricks.Length) Bricks[offset] = site; }