A Rectangular 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
-
trait TellInt4trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait HGridtrait Telltrait Persisttrait HGridSystrait HexStructtrait TGridtrait TGridSystrait TCenStructclass Objecttrait Matchableclass AnyShow all
Members list
Grouped members
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 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
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
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
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
Any
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
1st parameter name.
2nd parameter name.
3rd parameter name.
4th parameter name.
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
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.
Needs reimplementing.
Needs reimplementing.
Attributes
Attributes
- Definition Classes
Element 1 of this Tell2+ element product.
Element 2 of this Tell2+ element product.
Element 3 of this Show 3+ element product.
Element 4 of this Tell4+ element product.
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
Returns a clockwise sequence of adjacent tiles.
Attributes
- Inherited from:
- HGrid
flatMaps over each r row coordinate number.
maps over each r row coordinate number.
Foreach grid Row r coordinate.
Attributes
- Inherited from:
- HGrid
The centre of the hex grid in terms of c column coordinates.
Is the specified tile centre row empty?
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
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:
- HexStruct
foldLefts over each row number.
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
Boolean. True if the specified hex centre exists in this hex grid.
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 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.
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
Attributes
- Inherited from:
- HGrid
The number of Rows of vertices.
Number of parameter constituents of this class.
Number of parameter constituents of this class.
Attributes
- Definition Classes
- Inherited from:
- Persist4
The optional default value for parameter 1.
The optional default value for parameter 1.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
The optional default value for parameter 2.
The optional default value for parameter 2.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
The optional default value for parameter 3.
The optional default value for parameter 3.
Attributes
- Definition Classes
- Inherited from:
- Tell3Plused
The optional default value for parameter 4.
The optional default value for parameter 4.
Attributes
- Definition Classes
- Inherited from:
- Tell4Plused
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
Attributes
- Inherited from:
- HGrid
Returns the most appropriate HSysProjection for this HGridSys.
The centre of the hex grid in terms of r row coordinates.
Implementation incomplete.
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
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
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 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
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
Attributes
- Inherited from:
- HGrid
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
- Definition Classes
- Inherited from:
- TellInt4
Attributes
- Definition Classes
- Inherited from:
- TellInt4
Attributes
- Definition Classes
- Inherited from:
- TellInt4
Attributes
- Definition Classes
- Inherited from:
- TellInt4
Attributes
- Inherited from:
- HGridSys
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
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by show method on Show type class instances.
Attributes
- Inherited from:
- TellN
Attributes
- Inherited from:
- HGrid
The top or highest separator row, r coordinate.
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
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 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 from:
- HGrid