HexGridIrrAncient

abstract class HexGridIrrAncient[TileT <: TileAncient, SideT <: TileSideAncient](val rowBounds: Array[Int], xTileMin: Int, xTileMax: Int, yTileMin: Int, yTileMax: Int, turnNum: Int)(implicit evTile: ClassTag[TileT], evSide: ClassTag[SideT]) extends HexGridAncient[TileT, SideT]
class HexGridAncient[TileT, SideT]
trait TileGridAncient[TileT, SideT]
class Object
trait Matchable
class Any
class EGridAncient[TileT, SideT]
class EGrid80KmAncient[TileT, SideT]
class EGFarNorth[TileT, SideT]
class EGNorth[TileT, SideT]

Value members

Concrete methods

final override def foreachSidesXYAll(f: (Int, Int) => Unit): Unit

Needs more work.

Needs more work.

Definition Classes
override def optTile(x: Int, y: Int): Option[TileT]
Definition Classes
def rowEndInd(y: Int): Int
def rowStartInd(y: Int): Int
def rowTileXEnd(y: Int): Int
def rowTileXStart(y: Int): Int
def setRowEnd(y: Int, value: Int): Unit
def setRowStart(y: Int, value: Int): Unit
final override def setTileRect[A](xFrom: Int, xTo: Int, yFrom: Int, yTo: Int, tileValue: A)(implicit f: (Int, Int, A) => TileT): Unit
Definition Classes
override def sideNum: Int
Definition Classes
override def tileNum: Int
Definition Classes

Inherited methods

override def adjTileCoodsOfTile(tileCood: Cood): Coods

Warning needs modification.

Warning needs modification.

Definition Classes
Inherited from
HexGridAncient
final def arrLen: Int
Inherited from
TileGridAncient
override def coodIsSide(x: Int, y: Int): Unit
Definition Classes
Inherited from
HexGridAncient
final def coodIsSide(cood: Cood): Unit

Throws exception if Cood is not a valid Tile coordinate

Throws exception if Cood is not a valid Tile coordinate

Inherited from
TileGridAncient
override def coodIsTile(x: Int, y: Int): Unit
Definition Classes
Inherited from
HexGridAncient
final def coodIsTile(cood: Cood): Unit

Throws exception if Cood is not a valid Tile coordinate

Throws exception if Cood is not a valid Tile coordinate

Inherited from
TileGridAncient
final def coodToInd(cood: Cood): Int
Inherited from
TileGridAncient
def copyTile(oldGrid: TileGridAncient[TileT, _], cood: Cood): Unit
Inherited from
TileGridAncient
def fSetSide[A](x: Int, y: Int, value: A)(implicit f: (Int, Int, A) => SideT): Unit
Inherited from
TileGridAncient
def fSetTile[A](x: Int, y: Int, value: A)(implicit fTile: (Int, Int, A) => TileT): Unit
Inherited from
TileGridAncient
def fSetTile[A](cood: Cood, value: A)(implicit fTile: (Int, Int, A) => TileT): Unit
Inherited from
TileGridAncient
def foreachSideCoodPDMapAll[A <: ValueNElem, M <: ValueNsArr[A]](f: Cood => A)(implicit ev: ValueNsArrPersist[A, M]): M
Inherited from
TileGridAncient
@inline
final def foreachSidesCoodAll(f: Cood => Unit): Unit

For all Sides call side effecting function on the Tile side's Cood.

For all Sides call side effecting function on the Tile side's Cood.

Inherited from
TileGridAncient
@inline
final def foreachTileAll(f: TileT => Unit): Unit

For all Tiles call side effecting function on the Tile.

For all Tiles call side effecting function on the Tile.

Inherited from
TileGridAncient
final def foreachTileRowAll(f: Int => Unit): Unit

For each tile row, perform side effecting method.

For each tile row, perform side effecting method.

Inherited from
TileGridAncient
@inline
final def foreachTilesCoodAll(f: Cood => Unit): Unit

For all Tiles call side effecting function on the Tile's Cood.

For all Tiles call side effecting function on the Tile's Cood.

Inherited from
TileGridAncient
@inline
final def foreachTilesXYAll(f: (Int, Int) => Unit): Unit

For all Tiles call side effecting function on the Tile's XY Cood.

For all Tiles call side effecting function on the Tile's XY Cood.

Inherited from
TileGridAncient
def getHCost(startCood: Cood, endCood: Cood): Int

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.

Inherited from
HexGridAncient
def getSide(tc: Cood): SideT
Inherited from
TileGridAncient
def getSide(x: Int, y: Int): SideT
Inherited from
TileGridAncient
def getTile(tc: Cood): TileT
Inherited from
TileGridAncient
def getTile(x: Int, y: Int): TileT
Inherited from
TileGridAncient
def isTile(x: Int, y: Int): Boolean
Inherited from
HexGridAncient
def modTilesAll(f: TileT => Unit, xys: (Int, Int)*): Unit
Inherited from
TileGridAncient
def numTileRow: Int
Inherited from
TileGridAncient
final def optSidesTiles(cood: Cood): (Option[TileT], Option[TileT])
Inherited from
TileGridAncient
def optSidesTiles(x: Int, y: Int): (Option[TileT], Option[TileT])
Inherited from
TileGridAncient
final def optTile(cood: Cood): Option[TileT]
Inherited from
TileGridAncient
final def rowForeachTileAll(y: Int)(f: TileT => Unit): Unit
Inherited from
TileGridAncient
final override def rowForeachTilesXY(y: Int, xStart: Int, xEnd: Int, f: (Int, Int) => Unit): Unit

For each Tile's XY in part of a row.

For each Tile's XY in part of a row.

Definition Classes
Inherited from
HexGridAncient
final def rowForeachTilesXYAll(y: Int)(f: (Int, Int) => Unit): Unit

For each Tile's XY in the whole of the row.

For each Tile's XY in the whole of the row.

Inherited from
TileGridAncient
final def setRow[A](yRow: Int, xStart: Int, tileValues: Multiple[A]*)(implicit f: (Int, Int, A) => TileT): Cood

Note set Row starts with the y (row) parameter.

Note set Row starts with the y (row) parameter.

Inherited from
TileGridAncient
final def setRow[A](cood: Cood, tileValues: Multiple[A]*)(implicit f: (Int, Int, A) => TileT): Cood

Set tile row from the Cood.

Set tile row from the Cood.

Inherited from
TileGridAncient
final def setRowBack[A](cood: Cood, tileValues: Multiple[A]*)(implicit f: (Int, Int, A) => TileT): Cood
Inherited from
TileGridAncient
final def setRowBack[A](yRow: Int, xStart: Int, tileMakers: Multiple[A]*)(implicit f: (Int, Int, A) => TileT): Cood

Note set RowBack starts with the y (row) parameter

Note set RowBack starts with the y (row) parameter

Inherited from
TileGridAncient
def setSide(sc: Cood, side: SideT): Unit
Inherited from
TileGridAncient
def setSide(x: Int, y: Int, side: SideT): Unit
Inherited from
TileGridAncient
final def setSideCollection[A](coods: Coods, value: A)(implicit f: (Int, Int, A) => SideT): Unit

Sets a Coods collection of Side Cood to the same value.

Sets a Coods collection of Side Cood to the same value.

Inherited from
TileGridAncient
final def setSidesAll[A](value: A)(implicit fA: (Int, Int, A) => SideT): Unit
Inherited from
TileGridAncient
def setTile(cood: Cood, value: TileT): Unit
Inherited from
TileGridAncient
def setTile(x: Int, y: Int, value: TileT): Unit
Inherited from
TileGridAncient
final def setTiles[A](bottomLeft: Cood, topRight: Cood, tileValue: A)(implicit f: (Int, Int, A) => TileT): Unit
Inherited from
TileGridAncient
final def setTilesAll[A](value: A)(implicit fTile: (Int, Int, A) => TileT): Unit
Inherited from
TileGridAncient
final def sideArrLen: Int
Inherited from
TileGridAncient
@inline
final def sideCoodsAll: Coods
Inherited from
TileGridAncient
override def sideCoodsOfTile(tileCood: Cood): Coods
Definition Classes
Inherited from
HexGridAncient
override def sidesTileCoods(x: Int, y: Int): (Cood, Cood)
Definition Classes
Inherited from
HexGridAncient
final def tileCoodsFoldAll[R](f: Cood => R, fSum: (R, R) => R)(emptyVal: R): R
Inherited from
TileGridAncient
override def tileDestinguish[A](cood: Cood, v1: A, v2: A, v3: A, v4: A): A
Definition Classes
Inherited from
HexGridAncient
final def tileDestinguishColour(tileCood: Cood): Colour
Inherited from
TileGridAncient
final def tilesCoodFlatMapListAll[B](f: Cood => List[B]): List[B]

FlatMap all tiles' Cood to a List[B].

FlatMap all tiles' Cood to a List[B].

Inherited from
TileGridAncient
final def tilesCoodMapListAll[B](f: Cood => B): List[B]

Map all tiles' Cood to a List[B].

Map all tiles' Cood to a List[B].

Inherited from
TileGridAncient
def tilesFlatMapAll[B, BB <: ArrImut[B]](f: TileT => BB)(implicit build: ArrTBuilder[B, BB]): BB
Inherited from
TileGridAncient
def tilesFlatMapListAll[R](f: TileT => List[R])(implicit evidence$1: ClassTag[R]): List[R]

Map all Tiles to an List with function and flatten into Single List.

Map all Tiles to an List with function and flatten into Single List.

Inherited from
TileGridAncient
final def tilesFoldAll[R](f: TileT => R, fSum: (R, R) => R)(emptyVal: R): R

Folds All tiles.

Folds All tiles.

Inherited from
TileGridAncient
final def tilesMapAll[B, BB <: ArrImut[B]](f: TileT => B)(implicit build: ArrTBuilder[B, BB]): BB

Map all Tiles to Array[B] with function.

Map all Tiles to Array[B] with function.

Inherited from
TileGridAncient
final def tilesMapListAll[A](f: TileT => A): List[A]
Inherited from
TileGridAncient
final def tilesMapOptionAll[A, AA <: ArrImut[A]](f: TileT => Option[A])(implicit build: ArrTBuilder[A, AA]): AA
Inherited from
TileGridAncient
final def tilesMapOptionListAll[A](f: TileT => Option[A]): List[A]
Inherited from
TileGridAncient
final def tilesXYMapListAll[B](f: (Int, Int) => B): List[B]

Map all tiles' XY Cood to List.

Map all tiles' XY Cood to List.

Inherited from
TileGridAncient
override def vertCoodLineOfSide(x: Int, y: Int): CoodLine
Definition Classes
Inherited from
HexGridAncient
override def vertCoodsOfTile(tileCood: Cood): Coods
Definition Classes
Inherited from
HexGridAncient
override def xArrLen: Int
Definition Classes
Inherited from
HexGridAncient
final def xSideArrLen: Int
Inherited from
TileGridAncient
override def xSideMax: Int
Definition Classes
Inherited from
HexGridAncient
override def xSideMin: Int
Definition Classes
Inherited from
HexGridAncient
final def xSideToInd(x: Int): Int
Inherited from
TileGridAncient
override def xStep: Int
Definition Classes
Inherited from
HexGridAncient
final def xToInd(x: Int): Int
Inherited from
TileGridAncient
def xySideToInd(x: Int, y: Int): Int
Inherited from
TileGridAncient
def xyToInd(x: Int, y: Int): Int
Inherited from
TileGridAncient
final def ySideArrLen: Int
Inherited from
TileGridAncient
final def ySideMax: Int
Inherited from
TileGridAncient
final def ySideMin: Int
Inherited from
TileGridAncient
final def ySideToInd(y: Int): Int
Inherited from
TileGridAncient
final def yToInd(y: Int): Int
Inherited from
TileGridAncient

Concrete fields

val rowBounds: Array[Int]
val sideArr: Array[SideT]

Inherited fields

override val arr: Array[TileT]
Inherited from
HexGridAncient
override val xRatio: Double
Inherited from
HexGridAncient
override val yArrLen: Int
Inherited from
HexGridAncient