A Regular hex grid where the tile rows have the same length, except the tile rows where r %% 4 == 2 may differ in length by 1 from tile rows where r %% 4 == 0 rows.
Attributes
- Companion:
- object
- Graph
- Supertypes
Members list
SidesGroup
The bottom, lowest or minimum Side Row of this TileGrid. The r value, the row number value.
The bottom, lowest or minimum Side Row of this TileGrid. The r value, the row number value.
Attributes
- Inherited from:
- TGrid
Foreachs over each inner row of Sides. Users will not normally need to use this method directly.
Foreachs over each inner row of Sides. Users will not normally need to use this method directly.
Attributes
- Inherited from:
- TGrid
The number of Rows of Sides.
Foreachs over each Row of Sides. Users will not normally need to use this method directly.
Foreachs over each Row of Sides. Users will not normally need to use this method directly.
Attributes
- Inherited from:
- TGrid
The top, highest or maximum Side Row of this TileGrid. The r value, the row number.
The top, highest or maximum Side Row of this TileGrid. The r value, the row number.
Attributes
- Inherited from:
- TGrid
Value members
Concrete methods
Combine adjacent tiles of the same value.
The bottom, lowest or minimum row r value for tile centre rows where r.Div4Rem0, r %% 4 == 0.
The bottom, lowest or minimum row r value for tile centre rows where r.Div4Rem0, r %% 4 == 0.
Attributes
The bottom, lowest or minimum row r value for tile centre rows where r.Div4Rem2, r %% 4 == 2.
The bottom, lowest or minimum row r value for tile centre rows where r.Div4Rem2, r %% 4 == 2.
Attributes
The number of tile sides in the bottom side row of the hex grid.
The number of tile sides in the bottom side row of the hex grid.
Attributes
The HCenOrSide coordinate centre for this hex grid.
Boolean. True if the specified hex centre exists in this hex grid.
Boolean. True if the specified hex centre exists in this hex grid.
Attributes
Attributes
- Definition Classes
Gives the index into an Arr / Array of Tile data from its HCen hex tile centre coordinate. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Gives the index into an Arr / Array of Tile data from its HCen hex tile centre coordinate. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Attributes
The starting, minimum or by convention left column coordinate c value for tile centre rows where r.Div4Rem0. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
The starting, minimum or by convention left column coordinate c value for tile centre rows where r.Div4Rem0. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
Attributes
The start minimum or by convention left column or c value for tile centre rows where r.Div4Rem2. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
The start minimum or by convention left column or c value for tile centre rows where r.Div4Rem2. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
Attributes
The number of tile centre rows where r %% 4 == 0.
The number of tile centre rows where r %% 4 == 2.
Number of rows of tile centres. This will be different to the number of rows of sides and and will be different to the number of rows of vertices for HexGrids.
The end maximum or by convention right column coordinate, or c value for tile centre rows where r.Div4Rem0. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
The end maximum or by convention right column coordinate, or c value for tile centre rows where r.Div4Rem0. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
Attributes
The end, maximum or by convention right column coordinate or c value for tile centre rows where r.Div4Rem2. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
The end, maximum or by convention right column coordinate or c value for tile centre rows where r.Div4Rem2. This property is only available on regular hex grids HGrids, as this value is not fixed on irregular hex grids.
Attributes
The number of tiles or tile centres in rows where r.Div4Rem0.
The number of tiles or tile centres in rows where r.Div4Rem0.
Attributes
The number of tiles or tile centres in rows where r.Div4Rem2.
The number of tiles or tile centres in rows where r.Div4Rem2.
Attributes
foreachs over each Tile's Roord in the given Row. The row is specified by its r value.
foreachs over each Tile's Roord in the given Row. The row is specified by its r value.
Attributes
- Definition Classes
Calls the Foreach procedure on every Hex Side in the row given by the input parameter.
Calls the Foreach procedure on every Hex Side in the row given by the input parameter.
Attributes
- Definition Classes
The start (or by default left column) of the tile centre of the given row.
The start (or by default left column) of the tile centre of the given row.
Attributes
- Definition Classes
The number of tile centres in the given row.
The end (or by default right) column number of the tile centre of the given row.
The end (or by default right) column number of the tile centre of the given row.
Attributes
- Definition Classes
Gives the index into an Arr / Array of Tile data from its tile HCen. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
The top, highest or maximum row r value for tile centres rows where r.Div4Rem0, r %% 4 == 0.
The top, highest or maximum row r value for tile centres rows where r.Div4Rem0, r %% 4 == 0.
Attributes
The top, highest or maximum row r value for tile centre rows where r.Div4Rem2, r %% 4 == 2.
The top, highest or maximum row r value for tile centre rows where r.Div4Rem2, r %% 4 == 2.
Attributes
The number of tile sides in the top side row of the hex grid.
The number of tile sides in the top side row of the hex grid.
Attributes
Inherited methods
Attributes
- Inherited from:
- HGrid
The centre of the hex grid in terms of c column coordinates.
Is the specified tile centre row empty?
The centre point as a Vec2. Not sure why this id implemented here.
The centre point as a Vec2. Not sure why this id implemented here.
Attributes
- Inherited from:
- TGridSys
Gives the index into the unsafe backing Array of a HCornerLayer.
Spawns a new HCornerLayer data layer for this HGridSys from the master HGridSys's data layer.
Spawns a new HCornerLayer data layer for this HGridSys from the master HGridSys's data layer.
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGridSys
Finds path from Start hex tile centre to end tile centre given the cost function parameter.
Finds path from Start hex tile centre to end tile centre given the cost function parameter.
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGridSys
Gives a flat projection of HCoords to Pt2s. For a simple singular HGrid system this is all that is required to translate between grid coordinates and standard 2 dimensional space. For multi grids it provides a simple way to display all the tiles in the grid system, but a more complex projection may be required for fully meaningful display representation. For Example world grid systems and multi layer square tile games will require their own specialist projections.
Gives a flat projection of HCoords to Pt2s. For a simple singular HGrid system this is all that is required to translate between grid coordinates and standard 2 dimensional space. For multi grids it provides a simple way to display all the tiles in the grid system, but a more complex projection may be required for fully meaningful display representation. For Example world grid systems and multi layer square tile games will require their own specialist projections.
Attributes
- Definition Classes
- Inherited from:
- HGrid
flatMaps from all hex tile centre coordinates to an Arr of type ArrT. The elements of this array can not be accessed from this grid class as the TileGrid structure is lost in the flatMap operation.
flatMaps from all hex tile centre coordinates to an Arr of type ArrT. The elements of this array can not be accessed from this grid class as the TileGrid structure is lost in the flatMap operation.
Attributes
- Inherited from:
- HGridSys
flatMaps over each row number.
foldLefts over each row number.
Foreach grid Row y coordinate.
Attributes
- Inherited from:
- TGridSys
H cost for A* path finding. To move 1 tile has a cost 2. This is because the G cost or actual cost is the sum of the terrain cost of tile of departure and the tile of arrival.
H cost for A* path finding. To move 1 tile has a cost 2. This is because the G cost or actual cost is the sum of the terrain cost of tile of departure and the tile of arrival.
Attributes
- Inherited from:
- HGrid
Height of the tile grid system from furthest tile edge or vertex to furthest tile edge or vertex.
Height of the tile grid system from furthest tile edge or vertex to furthest tile edge or vertex.
Attributes
- Inherited from:
- TGridSys
Attributes
- Inherited from:
- HGridSys
Gives the index into an Arr / Array of Tile data from its tile HCen. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
foreach hex link / inner side's coordinate HSide, calls the effectual function.
foreach hex link / inner side's coordinate HSide, calls the effectual function.
Attributes
- Inherited from:
- HGrid
Maps over the HCen hex centre tile coordinates. B is used rather than A as a type parameter, as this method maps from HCen => B, corresponding to the standard Scala map function of A => B.
maps over each row number.
Creates a new HCenBuffLayer An [[HCen] hex tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.
Creates a new HCenBuffLayer An [[HCen] hex tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.
Attributes
- Inherited from:
- HGridSys
New hex tile data layer.
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGridSys
The number of Rows of vertices.
Maps from all hex tile centre coordinates to an Arr of type ArrT. The elements of this array can not be accessed from this grid class as the TileGrid structure is lost in the flatMap operation.
Maps from all hex tile centre coordinates to an Arr of type ArrT. The elements of this array can not be accessed from this grid class as the TileGrid structure is lost in the flatMap operation.
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGridSys
The centre of the hex grid in terms of r row coordinates.
Implementation incomplete.
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
The end (or by default right) column number of the hex coordinate row. So note that for the purposes of this method 2, 2 is not considered to be in the smae row as 2, 1 and 2, 3, although they have the same c number. Similarly Cen 2, 2 is not considered to be in the same row as sides 2, 0 and 2, 6.
The end (or by default right) column number of the hex coordinate row. So note that for the purposes of this method 2, 2 is not considered to be in the smae row as 2, 1 and 2, 3, although they have the same c number. Similarly Cen 2, 2 is not considered to be in the same row as sides 2, 0 and 2, 6.
Attributes
- Inherited from:
- HGrid
Spawns a new HSideBoolLayer data layer for this HGridSys from the master HGridSys's data layer.
Spawns a new HSideBoolLayer data layer for this HGridSys from the master HGridSys's data layer.
Attributes
- Inherited from:
- HGridSys
Gives the index into an Arr / Array of Tile data from its tile HSide. Use arrIndex and vertIndex methods to access tile centre and Vertex Arr / Array data.
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGridSys
Attributes
- Inherited from:
- HGrid
The top or highest centre row, r coordinate.
Gives the index into an Arr / Array of side data from its tile HVert. Use arrIndex and vertIndex methods to access tile centre and side Arr / Array data.
Gives the index into an Arr / Array of Tile data from its tile HVert. Use arrIndex and sideArrIndex methods to access tile centre and side Arr / Array data.
Width of the tile grid system from furthest tile edge or vertex to furthest tile edge or vertex.
Width of the tile grid system from furthest tile edge or vertex to furthest tile edge or vertex.
Attributes
- Inherited from:
- TGridSys
Concrete fields
The bottom or lowest tile centre row, r coordinate.
The bottom or lowest tile centre row, r coordinate.
Attributes
The minimum or lowest tile centre column c coordinate in the whole tile grid. This is called c rather than x because in hex grids HGrids there is not a 1 to 1 ratio from column coordinate to the x value in a Pt2.
The minimum or lowest tile centre column c coordinate in the whole tile grid. This is called c rather than x because in hex grids HGrids there is not a 1 to 1 ratio from column coordinate to the x value in a Pt2.
Attributes
the Maximum or highest tile centre column c coordinate in the whole tile grid. This is called c rather than x because in hex grids HGrids there is not a 1 to 1 ratio from column coordinate to the x value in a Pt2.
the Maximum or highest tile centre column c coordinate in the whole tile grid. This is called c rather than x because in hex grids HGrids there is not a 1 to 1 ratio from column coordinate to the x value in a Pt2.
Attributes
Inherited fields
The number of inner sides in the hex grid system.
The number of outer sides in the hex grid system.
The number of sides in the hex grid system.
The total number of tile centres in this tile Grid system.
Attributes
- Inherited from:
- HGrid
Array of indexs for Side data Arrs giving the index value for the start of each side row.
Array of indexs for Side data Arrs giving the index value for the start of each side row.
Attributes
- Inherited from:
- HGrid