ChessBoard

ostrat.pchess.ChessBoard
object ChessBoard extends SqGrid

Attributes

Graph
Supertypes
class SqGrid
trait TGrid
trait SqGridSys
trait TGridSys
trait TCenStruct
class Object
trait Matchable
class Any
Show all
Self type
ChessBoard.type

Members list

Grouped members

SidesGroup

final def bottomSepR: Int

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
final def numOfSepRows: Int

The number of Rows of Sides.

The number of Rows of Sides.

Attributes

Inherited from:
TGrid
def sepRowsForeach(f: Int => Unit): Unit

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
override def sideLines: LineSegArr

The line segments LineSegs for the sides of the tiles.

The line segments LineSegs for the sides of the tiles.

Attributes

Definition Classes
Inherited from:
SqGrid
final def sidesDraw(colour: Colour, lineWidth: Double): LinesDraw

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
final def topSepRow: Int

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

Inherited methods

The active tiles without any PaintElems.

The active tiles without any PaintElems.

Attributes

Inherited from:
SqGridSys
final def allRsFlatMap[ArrT <: Arr[_]](f: Int => ArrT)(implicit build: BuilderArrFlat[ArrT]): ArrT

flatMaps over each r row coordinate number.

flatMaps over each r row coordinate number.

Attributes

Inherited from:
TGridSys
final def allRsMap[B, BB <: Arr[B]](f: Int => B)(implicit build: BuilderArrMap[B, BB]): BB

maps over each r row coordinate number.

maps over each r row coordinate number.

Attributes

Inherited from:
TGridSys
final def allRsforeach(f: Int => Unit): Unit

Foreach grid Row r coordinate.

Foreach grid Row r coordinate.

Attributes

Inherited from:
TGrid
override def bottom: Double

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
Inherited from:
SqGrid
def cCen: Int

The centre of the hex grid in terms of c column coordinates.

The centre of the hex grid in terms of c column coordinates.

Attributes

Inherited from:
TGrid
def cenVec: Vec2

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
override def coordCen: SqCoord

The TCenOrSep coordinate centre of this tile grid.

The TCenOrSep coordinate centre of this tile grid.

Attributes

Definition Classes
Inherited from:
SqGrid
override def defaultView(pxScale: Double): SGView

Gives the default view in terms of SqCoord focus and scaling of this square grid system.

Gives the default view in terms of SqCoord focus and scaling of this square grid system.

Attributes

Definition Classes
Inherited from:
SqGrid
def fillTiles(colour: Colour): RArr[PolygonFill]

Fills all the tiles with the same given parameter Colour. Not sure how useful this method is.

Fills all the tiles with the same given parameter Colour. Not sure how useful this method is.

Attributes

Inherited from:
SqGrid
override def flatSqCoordToPt2(sqCoord: SqCoord): Pt2

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
Inherited from:
SqGrid
final def foldRows[B](init: B)(f: (B, Int) => B): B

foldLefts over each row number.

foldLefts over each row number.

Attributes

Inherited from:
TGrid
def foreach(f: SqCen => Unit): Unit

Attributes

Inherited from:
SqGrid
def fullDisplayScale(dispWidth: Double, dispHeight: Double, padding: Double): Double

Attributes

Inherited from:
TGridSys
final def height: Double

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

Attributes

Inherited from:
SqGrid
def layerArrayIndex(r: Int, c: Int): Int

Gives the index into the backing Array for the given SqCen.

Gives the index into the backing Array for the given SqCen.

Attributes

Inherited from:
SqGrid
final def layerArrayIndex(sc: SqCen): Int

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

Inherited from:
SqGrid
override def left: Double

The left most point in the grid where x is minimum.

The left most point in the grid where x is minimum.

Attributes

Definition Classes
Inherited from:
SqGrid
final override def leftSideC: Int

The TSep tile side, with the lowest C column coordinate. This places it on the left most points of the grid.

The TSep tile side, with the lowest C column coordinate. This places it on the left most points of the grid.

Attributes

Definition Classes
Inherited from:
SqGrid
final def map[B, ArrB <: Arr[B]](f: SqCen => B)(implicit build: BuilderArrMap[B, ArrB]): ArrB

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.

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.

Attributes

Inherited from:
SqGridSys
final def newSCenOptDGrider[A <: AnyRef](implicit ct: ClassTag[A]): SqCenOptLayer[A]

New Square tile data grid for this Square grid system.

New Square tile data grid for this Square grid system.

Attributes

Inherited from:
SqGridSys
final def newSqCenBuffLayer[A <: AnyRef](implicit ct: ClassTag[A]): SqCenBuffLayer[A]

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
final def newSqCenDGrid[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): SqCenLayer[A]

New Square tile centre data Square grid.

New Square tile centre data Square grid.

Attributes

Inherited from:
SqGridSys
final def numOfVertRows: Int

The number of Rows of vertices.

The number of Rows of vertices.

Attributes

Inherited from:
TGrid
override def numTileRows: Int

Number of rows of tiles.

Number of rows of tiles.

Attributes

Definition Classes
Inherited from:
SqGrid

Attributes

Inherited from:
SqGridSys
def rCen: Int

The centre of the hex grid in terms of r row coordinates.

The centre of the hex grid in terms of r row coordinates.

Attributes

Inherited from:
TGrid
override def right: Double

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
Inherited from:
SqGrid
final override def rightSideC: Int

The TSep tile side, with the highest C column coordinate. This places it on the right most points of the grid.

The TSep tile side, with the highest C column coordinate. This places it on the right most points of the grid.

Attributes

Definition Classes
Inherited from:
SqGrid
def rowForeach(r: Int)(f: SqCen => Unit): Unit

Attributes

Inherited from:
SqGrid
def rowIForeach(r: Int, startCount: Int)(f: (SqCen, Int) => Unit): Int

Attributes

Inherited from:
SqGrid
override def sidesForeach(f: SqSep => Unit): Unit

foreach Hex side's coordinate HSide, calls the effectual function.

foreach Hex side's coordinate HSide, calls the effectual function.

Attributes

Definition Classes
Inherited from:
SqGrid
def sqCenExists(r: Int, c: Int): Boolean

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:
SqGrid
final def sqCenExists(sc: SqCen): Boolean

Boolean. True if the SqCen hex centre exists in this hex grid.

Boolean. True if the SqCen hex centre exists in this hex grid.

Attributes

Inherited from:
SqGridSys
override def stepEndFind(startSC: SqCen, step: SqStep): Option[SqCen]

Finds step from StartSqCen to target fromSqCen.

Finds step from StartSqCen to target fromSqCen.

Attributes

Definition Classes
Inherited from:
SqGrid
def stepEndFind(cenStep: SqCenStep): Option[SqCen]

Attributes

Inherited from:
SqGridSys
override def stepFind(startCen: SqCen, endCen: SqCen): Option[SqStep]

Finds step from Start SqCen to target from SqCen.

Finds step from Start SqCen to target from SqCen.

Attributes

Definition Classes
Inherited from:
SqGrid
final def stepFind(startR: Int, startC: Int, endR: Int, endC: Int): Option[SqStep]

Finds step from Start SqCen to target from SqCen.

Finds step from Start SqCen to target from SqCen.

Attributes

Inherited from:
SqGridSys
def stepLikeEndFind(startHC: SqCen, stepLike: SqStepLike): Option[SqCen]

Finds the end from an SqStepLike.

Finds the end from an SqStepLike.

Attributes

Inherited from:
SqGridSys

The number of tiles in each tile row.

The number of tiles in each tile row.

Attributes

Inherited from:
SqGrid
override def top: Double

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 from:
SqGrid
final def topSepR: Int

The top or highest separator row, r coordinate.

The top or highest separator row, r coordinate.

Attributes

Inherited from:
TGrid

Attributes

Inherited from:
SqGrid
final def width: Double

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
override def xCen: Double

The centre of this grid in the X axis. this will be equal to the cCen Int value.

The centre of this grid in the X axis. this will be equal to the cCen Int value.

Attributes

Definition Classes
Inherited from:
TGrid
override def yCen: Double

The centre of this grid in the y axis. For SqGrids this will be equal to the cCen Int value, but this is not the case for HGrids.

The centre of this grid in the y axis. For SqGrids this will be equal to the cCen Int value, but this is not the case for HGrids.

Attributes

Definition Classes
Inherited from:
SqGrid
final override def yRatio: Double

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

Inherited fields

The bottom or lowest tile centre row, r coordinate.

The bottom or lowest tile centre row, r coordinate.

Attributes

Inherited from:
SqGrid

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:
SqGrid

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:
SqGrid
final lazy override val numTiles: Int

The total number of tile centres in this tile Grid system.

The total number of tile centres in this tile Grid system.

Attributes

Inherited from:
SqGridSys
val topCenR: Int

The top or highest tile centre row, r coordinate.

The top or highest tile centre row, r coordinate.

Attributes

Inherited from:
SqGrid