TileGridAncient
A Tile grid that contains both values for the tiles and the tile boundaries or sides. Rivers, straits, walls, doors, windows ditches and fortifications are examples of values commonly assigned to tile sides.
A tileGrid is a collection of tiles, either hexs or squares. This is a fundamental trait. It is a specific case of a tiled area. I have reached the conclusion that the general case of completely irregular tiling, while interesting mathematically and useful for say representing a historical game like "Risk", has insufficient utility for the representations we want today. Tile rids can however be fully regular or partly irregular such as the grids for covering the Earth's surface. Grids can be simple just consisting of values for the tiles or complex containing values for the tiles and the tile sides. Rivers, straits, walls, ditches are examples of values commonly assigned to tile sides.
It is stored in an underlying array. It consists of a sequence of contiguous rows of tiles. Each row of tiles is itself contiguous, There are no breaks between the first tile of the row and the last tile of the row although a row can consist of a single tile. Every row shares at least one tile side with the row above and below. The grid includes all the sides of the tiles including the sides on the outer edges of the grid. This means to link two grids requires a Grid Bridge class.
Value members
Abstract methods
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
For all Sides call side effecting function on the Tile side's XY Cood.
For all Sides call side effecting function on the Tile side's XY Cood.
Concrete methods
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
Throws exception if Cood is not a valid Tile coordinate
For all Sides call side effecting function on the Tile side's Cood.
For all Sides call side effecting function on the Tile side's Cood.
For all Tiles call side effecting function on the Tile.
For all Tiles call side effecting function on the Tile.
For all Tiles call side effecting function on the Tile's Cood.
For all Tiles call side effecting function on the Tile's Cood.
For all Tiles call side effecting function on the Tile's XY Cood.
For all Tiles call side effecting function on the Tile's XY Cood.
Note set RowBack starts with the y (row) parameter
Note set RowBack starts with the y (row) parameter
Sets a Coods collection of Side Cood to the same value.
Sets a Coods collection of Side Cood to the same value.
Map all Tiles to an List with function and flatten into Single List.
Map all Tiles to an List with function and flatten into Single List.