- Companion:
- object
Value members
Concrete methods
The y coordinate of the bottom row of this grid divided by 4 leaves remainder of 0.
The y coordinate of the bottom row of this grid divided by 4 leaves remainder of 0.
The y coordinate of the bottom row of this grid divided by 4 leaves remainder of 2.
The y coordinate of the bottom row of this grid divided by 4 leaves remainder of 2.
Return the Side Row start for the given Row y value.
Return the Side Row start for the given Row y value.
- Definition Classes
foreachs over each Tile's Roord in the given Row. The row is specified by its y value.
foreachs over each Tile's Roord in the given Row. The row is specified by its y value.
- Definition Classes
The index from a Side Roord into an Arr of Side data.
The index from a Side Roord into an Arr of Side data.
- Definition Classes
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.
- Definition Classes
The y coordinate of the top row of this grid divided by 4 leaves remainder of 0.
The y coordinate of the top row of this grid divided by 4 leaves remainder of 0.
Inherited methods
Gives a Coods Seq of Cood along a horisonatal line
Gives a Coods Seq of Cood along a horisonatal line
- Inherited from:
- HexGridOld
The active tiles without any PaintElems.
The active tiles without any PaintElems.
- Definition Classes
- Inherited from:
- HexGridOld
Gives the index into an Arr / Array of Tile data from its tile Roord. 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 tile Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
- Inherited from:
- TileGridOld
The centre point of the grid in Vec2 coordinates.
The centre point of the grid in Vec2 coordinates.
- Inherited from:
- TileGridOld
Quick method to give the Tile, Side and Vertex Roord Text Grahics.
Quick method to give the Tile, Side and Vertex Roord Text Grahics.
- Inherited from:
- TileGridOld
The centre of the grid in Vec2 coordinates.
The centre of the grid in Vec2 coordinates.
- Inherited from:
- TileGridOld
flatMaps from all tile Roords to an Arr of type ArrT. The elements of this array can not be accessed from this gird class as the TileGrid structure is lost in the flatMap operation.
flatMaps from all tile Roords to an Arr of type ArrT. The elements of this array can not be accessed from this gird class as the TileGrid structure is lost in the flatMap operation.
- Inherited from:
- TileGridOld
flatmaps from all tile Roords to an Arr of type ArrT, removing all duplicate elements.
flatmaps from all tile Roords to an Arr of type ArrT, removing all duplicate elements.
- Inherited from:
- TileGridOld
foreachs over each tile's centre Roord.
foreachs over each tile's centre Roord.
- Inherited from:
- TileGridOld
foreachs over each tile's Roord and its centre Vec2.
foreachs over each tile's Roord and its centre Vec2.
- Inherited from:
- TileGridOld
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.
- Inherited from:
- HexGridOld
Maps from all tile Roords with index to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.
Maps from all tile Roords with index to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.
- Inherited from:
- TileGridOld
Maps from all tile Roords to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.
Maps from all tile Roords to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.
- Inherited from:
- TileGridOld
maps over each tile's Roord and its Polygon.
maps over each tile's Roord and its Polygon.
- Inherited from:
- TileGridOld
New immutable Arr of Side Boolean data.
New immutable Arr of Side Boolean data.
- Inherited from:
- TileGridOld
New Tile immutable Tile Arr of Opt data values.
New Tile immutable Tile Arr of Opt data values.
- Inherited from:
- TileGridOld
New mutable Array of Tile data. All tiles set to an initial value.
New mutable Array of Tile data. All tiles set to an initial value.
- Inherited from:
- TileGridOld
New mutable Array of Tile data Lists.
New mutable Array of Tile data Lists.
- Inherited from:
- TileGridOld
New immutable Arr of Side Boolean data.
New immutable Arr of Side Boolean data.
- Inherited from:
- TileGridOld
New immutable Arr of vertex Int data.
New immutable Arr of vertex Int data.
- Inherited from:
- TileGridOld
Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.
Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.
- Inherited from:
- TileGridOld
Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.
Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.
- Inherited from:
- TileGridOld
Converts Roord to a Vec2. For a square grid this will be a simple 1 to 1 map.
Converts Roord to a Vec2. For a square grid this will be a simple 1 to 1 map.
- Inherited from:
- TileGridOld
This gives the Vec2 of the Roord relative to a position on the grid and then scaled. (roordToVec2Abs(roord) - gridPosn -cen) * scale
This gives the Vec2 of the Roord relative to a position on the grid and then scaled. (roordToVec2Abs(roord) - gridPosn -cen) * scale
- Inherited from:
- TileGridOld
Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.
Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.
- Inherited from:
- TileGridOld
Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.
Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.
- Inherited from:
- TileGridOld
Sets element in a flat Tiles Arr according to its Roord.
Sets element in a flat Tiles Arr according to its Roord.
- Inherited from:
- TileGridOld
The index from a Side Roord into an Arr of Side data.
The index from a Side Roord into an Arr of Side data.
- Inherited from:
- TileGridOld
Side Roord to Line2 relative to a position on the grid and then scaled.
Side Roord to Line2 relative to a position on the grid and then scaled.
- Inherited from:
- TileGridOld
Gives all the sideRoords of the grid with out duplicates.
Gives all the sideRoords of the grid with out duplicates.
- Inherited from:
- TileGridOld
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.
- Inherited from:
- TileGridOld
This gives the all tile grid lines in a single colour and line width.
This gives the all tile grid lines in a single colour and line width.
- Inherited from:
- TileGridOld
foreach side's Roords, calls the effectful function.
foreach side's Roords, calls the effectful function.
- Inherited from:
- TileGridOld
Maps from each sides Roord to an ArrBase of A.
Maps from each sides Roord to an ArrBase of A.
- Inherited from:
- TileGridOld
Maps from each sides Roord to an ArrBase of A.
Maps from each sides Roord to an ArrBase of A.
- Inherited from:
- TileGridOld
Tests whether the Tile exists within the TileGrid. Will throw on an invalid Tile Roord.
Tests whether the Tile exists within the TileGrid. Will throw on an invalid Tile Roord.
- Inherited from:
- TileGridOld
Foreach row of vertices apply the effctful function taking the y dimension as parameter.
Foreach row of vertices apply the effctful function taking the y dimension as parameter.
- Inherited from:
- TileGridOld
foreach vertex's Roord, calls the effectful function.
foreach vertex's Roord, calls the effectful function.
- Inherited from:
- TileGridOld
Maps from each vertex's Roord with index, to a specialised Arr of type A.
Maps from each vertex's Roord with index, to a specialised Arr of type A.
- Inherited from:
- TileGridOld
maps from each Vertex's Roord to a value of type A. Returns a specialiased immutable Arr.
maps from each Vertex's Roord to a value of type A. Returns a specialiased immutable Arr.
- Inherited from:
- TileGridOld
The centre of the grid by the y coordinate.
The centre of the grid by the y coordinate.
- Inherited from:
- TileGridOld
The top Side Row of this TileGrid. The y value.
The top Side Row of this TileGrid. The y value.
- Inherited from:
- TileGridOld
The bottom Side Row of this TileGrid. The y value.
The bottom Side Row of this TileGrid. The y value.
- Inherited from:
- TileGridOld
The top Row of Tile vertices.
The top Row of Tile vertices.
- Inherited from:
- TileGridOld
The bottom row of Tile vertices.
The bottom row of Tile vertices.
- Inherited from:
- TileGridOld
Inherited fields
The number of Sides in the TileGrid.
The number of Sides in the TileGrid.
- Inherited from:
- TileGridOld
The number of tile vertices in the TileGrid.
The number of tile vertices in the TileGrid.
- Inherited from:
- TileGridOld