public void constructTiles() { tiles = new BaseTile[Z][][]; for (int k = 0; k < Z; k++) { tiles[k] = new BaseTile[Y][]; for (int i = 0; i < Y; ++i) { tiles[k][i] = new BaseTile[X]; for (int j = 0; j < X; ++j) { tiles[k][i][j] = new BaseTile(); } } } for (int k = 0; k < tiles.Count(); k++) { for (int i = 0; i < tiles[k].Count(); ++i) { for (int j = 0; j < tiles[k][i].Count(); ++j) { tiles[k][i][j].buildTile(); } } } } // End constructTiles
public Tile(BaseTile above) { gui = above; Width = 100; Height = 100; BackColor = Color.ForestGreen; Margin = new Padding(0); Show(); }