ostrat.prid.psq

Pacakge for square tile grids.

Type members

Classlikes

case class LineSegSC(r1: Int, c1: Int, r2: Int, c2: Int) extends LineSegLike[SqCoord]

A 2d line upon a HexGrid defined by its start and end sqGrid SqCoords.

A 2d line upon a HexGrid defined by its start and end sqGrid SqCoords.

Companion:
object
object LineSegSC
Companion:
class
case class SqAndStep(r1: Int, c1: Int, step: SqStep)
trait SqBaseCoord extends TileCoord
case class SqCen(r: Int, c: Int) extends SqCenOrSide with TileCen

A Square tile centre square grid SqGrid coordinate.

A Square tile centre square grid SqGrid coordinate.

Companion:
object
object SqCen
Companion:
class
final class SqCenArr[A <: AnyRef](val unsafeArray: Array[A]) extends AnyVal with TileCenArr[A]

An array of hex tile or hex centre data.

An array of hex tile or hex centre data.

Companion:
object
object SqCenArr
Companion:
class
class SqCenArrBuff[A <: AnyRef](val unsafeArr: Array[ArrayBuffer[A]])

An Array of ArrayBuffers corresponding to (the centres of a) Hex tile Grid.

An Array of ArrayBuffers corresponding to (the centres of a) Hex tile Grid.

Companion:
object

Companion object for the Hex (centres) grid Array of ArrayBuffer classes.

Companion object for the Hex (centres) grid Array of ArrayBuffer classes.

Companion:
class
class SqCenArrOfBuff[A <: AnyRef](val unsafeArr: Array[ArrayBuffer[A]])

A SqCen hex tile centre grid Arr of ArrayBuffers corresponding to the centres of an SqGrid square tile grid.

A SqCen hex tile centre grid Arr of ArrayBuffers corresponding to the centres of an SqGrid square tile grid.

Companion:
object

Companion object for the square (centres) grid Array of ArrayBuffer classes.

Companion object for the square (centres) grid Array of ArrayBuffer classes.

Companion:
class
final class SqCenArrOpt[A <: AnyRef](val unsafeArr: Array[A]) extends AnyVal with TileArrOpt[A]

An immutable Arr of Opt Tile data for a specific square tile grid SqGrid. This is specialised for OptRef[A]. The tileGrid can map the SqCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit SqGrid square grid parameter.

An immutable Arr of Opt Tile data for a specific square tile grid SqGrid. This is specialised for OptRef[A]. The tileGrid can map the SqCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit SqGrid square grid parameter.

trait SqCenOrSide extends SqCoord with TileCenOrSide
Companion:
object
Companion:
class
trait SqCoord extends SqBaseCoord

A square grid integer tile coordinate.

A square grid integer tile coordinate.

Companion:
object
object SqCoord
Companion:
class
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.

A grid of Squares. A regular rectangle of squares.

Companion:
object
object SqGrid

Companion object for the HGridReg class. Contains an applr method that corrects the r and Y minimum and maximum values.

Companion object for the HGridReg class. Contains an applr method that corrects the r and Y minimum and maximum values.

Companion:
class
trait SqGridScen extends GridTurnScen
trait SqMem[A]
class SqSide(val r: Int, val c: Int) extends SqCenOrSide with TileSide

A Square tile side square grid SqGrid coordinate.

A Square tile side square grid SqGrid coordinate.

sealed trait SqStep extends TileStep

A square tile step can take 8 values

A square tile step can take 8 values

case object SqStepDL extends SqStepDiag
case object SqStepDR extends SqStepDiag
sealed trait SqStepDiag extends SqStep

A non-diagonal square tile Step can take 4 values.

A non-diagonal square tile Step can take 4 values.

case object SqStepDn extends SqStepNear

An downward step / move / addition of one square tile in a square tile grid.

An downward step / move / addition of one square tile in a square tile grid.

case object SqStepLt extends SqStepNear

An upward of one square tile in a square tile grid.

An upward of one square tile in a square tile grid.

sealed trait SqStepNear extends SqStep

A non-diagonal square tile Step can take 4 values.

A non-diagonal square tile Step can take 4 values.

case object SqStepRt extends SqStepNear

An rightward step / move / addition of one square tile in a square tile grid. Increases the column coordinate by 2

An rightward step / move / addition of one square tile in a square tile grid. Increases the column coordinate by 2

case object SqStepUL extends SqStepDiag
case object SqStepUR extends SqStepDiag
case object SqStepUp extends SqStepNear

An upward step / move addition of one square tile in a square tile grid. Increases the row coordinate by 2.

An upward step / move addition of one square tile in a square tile grid. Increases the row coordinate by 2.

final class SqVert extends AnyVal with SqCoord with TileCoord

A Square tile vertex square grid SqGrid coordinate.

A Square tile vertex square grid SqGrid coordinate.

Companion:
object
object SqVert

Companion object for SqVert trait. Contains ShowDecT and builder implicit instances.

Companion object for SqVert trait. Contains ShowDecT and builder implicit instances.

Companion:
class
final class SqVertBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with BuffInt2s[SqVert]
final class SqVerts(val unsafeArray: Array[Int]) extends AnyVal with SqVertsLike with ArrInt2s[SqVert]

An array[Int] based collection for SqVert.

An array[Int] based collection for SqVert.

Companion:
object
Companion:
class

Common trait for Hverts and PolygonHC

Common trait for Hverts and PolygonHC

Value members

Concrete fields

The square centre step values.

The square centre step values.