HGridSys
System of hex tile grids. Can be a single HGrid or a system of multiple hex tile grids.
Attributes
- Graph
- Supertypes
- trait TGridSysclass Any
- Known subtypes
- trait EGridSystrait EGrid160Systrait EGrid160LongMultiobject Grids160S0E1.typeobject Grids160S11E1.typeobject Grids160S4E5.typetrait EGrid320Sysclass EGrid320Longclass EGrid320LongParttrait EGrid320LongMultiobject Grids320ChinaJapan.typeobject Grids320S0E1.typeobject Grids320S0E11.typeobject Grids320S10E5.typeobject Grids320S11E2.typeobject Grids320S8E10.typeobject GridsNCanada.typetrait EGrid80Sysclass EGrid80LongFulltrait EGrid80LongMultiobject Grids80s0e1.typeclass EGridclass EGridLongclass EGrid160Longclass EGrid160LongPartclass EGrid80LongPartclass EGridLongFullclass EGrid160LongFullclass EGrid320LongFulltrait EGridLongParttrait EGridLongMultitrait EGridMultitrait HGridclass HGridIrrclass HGridRegtrait HGridMulti
Members list
Value members
Abstract methods
foreach hex edge / outer side's coordinate HSide, calls the effectual function.
foreach hex edge / outer side's coordinate HSide, calls the effectual function.
Attributes
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
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
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
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 SeqDef data.
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 SeqDef data.
Attributes
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
For each row combine data layer into RArr[HCenRowPair]. May be superceded
For each row combine data layer into RArr[HCenRowPair]. May be superceded
Attributes
Gives the index into an Arr / Array of side data from its tile HSide. Use arrIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Gives the index into an Arr / Array of side data from its tile HSide. Use arrIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Attributes
foreach Hex side's coordinate HSide, calls the effectual function.
foreach Hex side's coordinate HSide, calls the effectual function.
Attributes
Concrete methods
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
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
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
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.
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.
Attributes
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 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.
Attributes
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
New hex tile data layer.
New hex tile data layer.
Attributes
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
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
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.
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
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.
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.
Attributes
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 side data from its tile HVert. Use arrIndex and vertIndex methods to access tile centre and side Arr / Array data.
Attributes
Inherited methods
The bottom most point in the grid where the value of y is minimum.
The bottom most point in the grid where the value of y is minimum.
Attributes
- Inherited from:
- TGridSys
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
flatMaps over each row number.
For each row of tiles performs side effecting function on the r coordinate of the row.
For each row of tiles performs side effecting function on the r coordinate of the row.
Attributes
- Inherited from:
- TGridSys
Attributes
- Inherited from:
- TGridSys
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
The left most point in the grid where x is minimum.
maps over each row number.
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.
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.
Attributes
- Inherited from:
- TGridSys
The right most point in the grid where the value of x is maximum.
The top most point in the grid where the value of y is maximum.
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 number of inner sides in the hex grid system.
The number of inner sides in the hex grid system.
Attributes
The number of outer sides in the hex grid system.
The number of outer sides in the hex grid system.
Attributes
The number of sides in the hex grid system.
The number of sides in the hex grid system.