A grid of hexs. The grid may be a regular rectangle of hexs or an irregular grid with variable length rows.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class HGridGenclass EGridclass EGridLongclass EGrid120Longclass EGrid120LongPartclass EGrid13Longclass EGrid13LongPartclass EGrid160Longclass EGrid160LongPartclass EGrid220Longclass EGrid220LongPartclass EGrid320Longclass EGrid320LongPartclass EGrid460Longclass EGrid460LongPartclass EGrid640Longclass EGrid640LongPartclass EGrid80LongPartclass EGridMegaLongclass EGridMegaLongPartclass EGridLongFullclass EGrid120LongFullclass EGrid13LongFullclass EGrid160LongFullclass EGrid220LongFullclass EGrid320LongFullclass EGrid460LongFullclass EGrid640LongFullclass EGrid80LongFullclass EGridMegaLongFulltrait EGridLongPartclass HGridRectShow all
Members list
Grouped members
Side Members
Trait members that operate on the sides of the Hex Grid.
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 separators. Users will not normally need to use this method directly.
Foreachs over each Row of separators. Users will not normally need to use this method directly.
Attributes
- Inherited from:
- TGrid
foreach Hex side's coordinate HSide, calls the effectfull function.
foreach Hex side's coordinate HSide, calls the effectfull function.
Attributes
- Definition Classes
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
Foreachs over each Row of vertices. Users will not normally need to use this method directly.
Foreachs over each Row of vertices. Users will not normally need to use this method directly.
Attributes
- Inherited from:
- TGrid
foreach Hex side's coordinate HSide, calls the effectfull function.
foreach Hex side's coordinate HSide, calls the effectfull function.
Attributes
- Definition Classes
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
The number of tile centre rows where r %% 4 == 0.
The number of tile centre rows where r %% 4 == 0.
Attributes
The number of tile centre rows where r %% 4 == 2.
The number of tile centre rows where r %% 4 == 2.
Attributes
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
The number of tile centres in the given row.
The number of tile centres in the given row.
Attributes
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
Concrete 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
- Definition Classes
Is the specified tile centre row empty?
Is the specified tile centre row empty?
Attributes
Attributes
- Definition Classes
Not correct yet.
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
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
The left most point in the grid where x is minimum.
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
The right most point in the grid where the value of x is maximum.
The right most point in the grid where the value of x is maximum.
Attributes
- Definition Classes
Implementation incomplete.
Implementation incomplete.
Attributes
Calls the Foreach procedure on every Hex vertex in the row given by the input parameter.
Calls the Foreach procedure on every Hex vertex in the row given by the input parameter.
Attributes
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 same 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 same 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
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
- Definition Classes
This method should only be used when you know the hex separator exists.
This method should only be used when you know the hex separator exists.
Attributes
- Definition Classes
Attributes
- Definition Classes
This method should only be used when you know the hex separator exists.
This method should only be used when you know the hex separator exists.
Attributes
- Definition Classes
The top most point in the grid where the value of y is maximum.
The top most point in the grid where the value of y is maximum.
Attributes
- Definition Classes
Inherited methods
Returns a clockwise sequence of adjacent tiles.
Returns a clockwise sequence of adjacent tiles.
flatMaps over each r row coordinate number.
maps over each r row coordinate number.
Foreach grid Row r coordinate.
The bottom or lowest tile centre row, r coordinate.
The centre of the hex grid in terms of c column coordinates.
Attributes
- Inherited from:
- HGridSys
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.
Gives the index into the unsafe backing Array of a HCornerLayer.
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
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:
- HexStruct
foldLefts over each row number.
Attributes
- Inherited from:
- TGridSys
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
- Inherited from:
- TGrid
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 from:
- TGrid
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
- Inherited from:
- HexStruct
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
flatMaps from all hex tile centre coordinates to an Arr of type ArrT. The normal flatMap functions is only applied if the condtion of the first function is true.
flatMaps from all hex tile centre coordinates to an Arr of type ArrT. The normal flatMap functions is only applied if the condtion of the first function is true.
Attributes
- Inherited from:
- HexStruct
Maps each Hcen to an element of type B, only if the predicate function on the HCen is true. Collects the true cases. In some cases this will be easier and more efficient than employing the optMap method.
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 data.
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.
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
The number of Rows of vertices.
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:
- TGrid
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:
- HexStruct
Returns the most appropriate HSysProjection for this HGridSys.
The centre of the hex grid in terms of r row coordinates.
Gives the index into an Arr / Array of side data from its tile HSep. Use arrIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Gives the index into an Arr / Array of Tile data from its tile HSep. 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:
- HGridSys
The most basic Show method, paralleling the strT method on ShowT type class instances.
The most basic Show method, paralleling the strT method on ShowT type class instances.
Attributes
- Inherited from:
- Tell
Show with decimal precision of 0 places.
Show with decimal precision of 1 place padding with a zero if necessary.
Show with decimal precision of 1 place padding with a zero if necessary.
Attributes
- Inherited from:
- Tell
Show with decimal precision of 2 places padding with zeros if necessary.
Show with decimal precision of 2 places padding with zeros if necessary.
Attributes
- Inherited from:
- Tell
Show with decimal precision of 3 places padding with zeros if necessary.
Show with decimal precision of 3 places padding with zeros if necessary.
Attributes
- Inherited from:
- Tell
The top or highest tile centre row, r coordinate.
The top or highest separator row, r coordinate.
The type of the object to be persisted.
This property determines if the type can be used with Multiple syntax.
This property determines if the type can be used with Multiple syntax.
MyObj * 7
. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).
Attributes
- Inherited from:
- Persist
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
The conversion factor for c column tile grid coordinates. 1.0 / sqrt(3).
The conversion factor for c column tile grid coordinates. 1.0 / sqrt(3).
Attributes
- Definition Classes
- Inherited from:
- HexStruct
Concrete fields
Array of indexs for separator data Arrs giving the index value for the start of each separator row.
Array of indexs for separator data Arrs giving the index value for the start of each separator row.
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.