A grid of Squares. A regular rectangle of squares.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait TGridtrait SqGridSystrait TGridSystrait TCenStructclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ChessBoard
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
The line segments LineSegs for the sides of the tiles.
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.
Attributes
- Inherited from:
- SqGridSys
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
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
Gives a flat projection of SqCoords to Pt2s. For a simple singular SqGrid 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 SqCoords to Pt2s. For a simple singular SqGrid 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
Gives the index into an Arr / Array of Tile data from its tile SqCen. 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 SqCen. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.
Attributes
The left most point in the grid where x is minimum.
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
foreach Hex side's coordinate HSide, calls the effectual function.
foreach Hex side's coordinate HSide, calls the effectual function.
Attributes
- Definition Classes
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 number of tiles in each tile row.
The number of tiles in each tile row.
Attributes
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
The active tiles without any PaintElems.
flatMaps over each r row coordinate number.
maps over each r row coordinate number.
Foreach grid Row r coordinate.
The centre of the hex grid in terms of c column coordinates.
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
foldLefts over each row number.
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
Maps over the SqCen hex centre tile coordinates. B is used rather than A as a type parameter, as this method maps from SqCen => B, corresponding to the standard Scala map function of A => B.
New Square tile data grid for this Square grid system.
Creates a new SqCenBuffLayer. A [[SqCen] square tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.
Creates a new SqCenBuffLayer. A [[SqCen] square tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.
Attributes
- Inherited from:
- SqGridSys
New Square tile centre data Square grid.
The number of Rows of vertices.
Attributes
- Inherited from:
- SqGridSys
The centre of the hex grid in terms of r row coordinates.
Attributes
- Inherited from:
- SqGridSys
Finds the end from an SqStepLike.
The top or highest separator row, r coordinate.
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
C coordinates match 1 to 1 to x coordinates for square grids.
C coordinates match 1 to 1 to x coordinates for square grids.
Attributes
- Definition Classes
- Inherited from:
- SqGridSys
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.