SqGrid

final class SqGrid(val bottomCenRow: Int, val topCenRow: Int, val leftCenCol: Int, val rightCenCol: Int) extends TGrid

A grid of Squares. A regular rectangle of squares.

Companion:
object
trait TGrid
class Object
trait Matchable
class Any

Document{}

final def bottomSideRow: 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.

Inherited from:
TGrid
final def numOfSideRows: Int

The number of Rows of Sides.

The number of Rows of Sides.

Inherited from:
TGrid

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Inherited from:
TGrid
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.

Inherited from:
TGrid
final def topSideRow: 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.

Inherited from:
TGrid

Value members

Concrete methods

The active tiles without any PaintElems.

The active tiles without any PaintElems.

final def arrIndex(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.

def arrIndex(r: Int, c: Int): Int
override def bottom: Double
Definition Classes
override def coordCen: SqCenOrSide
Definition Classes
def foreach(f: SqCen => Unit): Unit
override def foreachCenCoord(f: TileCoord => Unit): Unit
Definition Classes
override def height: Double
Definition Classes
final def iForeach(f: (SqCen, Int) => Unit): Unit
final def iForeach(startCount: Int)(f: (SqCen, Int) => Unit): Unit
override def left: Double
Definition Classes
final def map[B, ArrB <: SeqImut[B]](f: SqCen => B)(implicit build: ArrBuilder[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 HCen => 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 HCen => B, corresponding to the standard Scala map function of A => B.

final def newSqCenArrOfBuff[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrOfBuff[A]

Creates a new HCenArrOfBuff An [[HCen] hex tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.

Creates a new HCenArrOfBuff An [[HCen] hex tile centre corresponding Arr of empty ArrayBuffers of the given or inferred type.

final def newTileArr[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): SqCenArr[A]

New immutable Arr of Tile data.

New immutable Arr of Tile data.

final def newTileArrOpt[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrOpt[A]

New Tile immutable Tile Arr of Opt data values.

New Tile immutable Tile Arr of Opt data values.

final def newTileBuffArr[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrBuff[A]
override def numTileRows: Int

Number of rows of tiles.

Number of rows of tiles.

Definition Classes
override def numTiles: Int

The total number of Tiles in the tile Grid.

The total number of Tiles in the tile Grid.

Definition Classes
override def right: Double
Definition Classes
def rowForeach(r: Int)(f: SqCen => Unit): Unit
def rowIForeach(r: Int, startCount: Int)(f: (SqCen, Int) => Unit): Int
final def sqCenExists(sc: SqCen): Boolean

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

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

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.

The number of tiles in each tile row.

The number of tiles in each tile row.

override def top: Double
Definition Classes
override def width: Double
Definition Classes
override def yCen: Double
Definition Classes
override def yRatio: Double
Definition Classes

Inherited methods

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.

Inherited from:
TGrid

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.

Inherited from:
TGrid
final def flatMapRows[ArrT <: SeqImut[_]](f: Int => ArrT)(implicit build: ArrFlatBuilder[ArrT]): ArrT

flatMaps over each row number.

flatMaps over each row number.

Inherited from:
TGrid
final def foldRows[B](init: B)(f: (B, Int) => B): B

foldLefts over each row number.

foldLefts over each row number.

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

Foreach grid Row y coordinate.

Foreach grid Row y coordinate.

Inherited from:
TGrid
def fullDisplayScale(dispWidth: Double, dispHeight: Double, padding: Double): Double
Inherited from:
TGrid
def mapCenCoords[B, BB <: SeqImut[B]](f: TileCoord => B)(implicit build: ArrBuilder[B, BB]): BB
Inherited from:
TGrid
final def mapRows[B, BB <: SeqImut[B]](f: Int => B)(implicit build: ArrBuilder[B, BB]): BB

maps over each row number.

maps over each row number.

Inherited from:
TGrid
final def numOfVertRows: Int

The number of Rows of vertices.

The number of Rows of vertices.

Inherited from:
TGrid
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.

Inherited from:
TGrid

Gives the text graphics for the row and column of each tile centre.

Gives the text graphics for the row and column of each tile centre.

Inherited from:
TGrid
final def sideRowBottom: Int

The bottom or lowest tile side row, r coordinate.

The bottom or lowest tile side row, r coordinate.

Inherited from:
TGrid

The top of highest tile side row, r coordinate.

The top of highest tile side row, r coordinate.

Inherited from:
TGrid

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.

Inherited from:
TGrid

Concrete fields