HexGridAncient

abstract class HexGridAncient[TileT <: TileAncient, SideT <: TileSideAncient](val xTileMin: Int, val xTileMax: Int, val yTileMin: Int, val yTileMax: Int, val turnNum: Int)(implicit val evTile: ClassTag[TileT], val evSide: ClassTag[SideT]) extends TileGridAncient[TileT, SideT]

To be deprecated. A Hex tile own the right sides, upRight, Right and DownRight. It owns the Up, UpRight and DownRight Vertices numbers 0, 1 and 2.

Companion:
object
trait TileGridAncient[TileT, SideT]
class Object
trait Matchable
class Any
class HexGridIrrAncient[TileT, SideT]
class EGridAncient[TileT, SideT]
class EGrid80KmAncient[TileT, SideT]
class EGFarNorth[TileT, SideT]
class EGNorth[TileT, SideT]

Value members

Concrete methods

override def adjTileCoodsOfTile(tileCood: Cood): Coods

Warning needs modification.

Warning needs modification.

Definition Classes
override def coodIsSide(x: Int, y: Int): Unit
Definition Classes
override def coodIsTile(x: Int, y: Int): Unit
Definition Classes
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.

def isTile(x: Int, y: Int): Boolean
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
override def sideCoodsOfTile(tileCood: Cood): Coods
Definition Classes
override def sidesTileCoods(x: Int, y: Int): (Cood, Cood)
Definition Classes
override def tileDestinguish[A](cood: Cood, v1: A, v2: A, v3: A, v4: A): A
Definition Classes
override def vertCoodLineOfSide(x: Int, y: Int): CoodLine
Definition Classes
override def vertCoodsOfTile(tileCood: Cood): Coods
Definition Classes
override def xArrLen: Int
Definition Classes
override def xSideMax: Int
Definition Classes
override def xSideMin: Int
Definition Classes
override def xStep: Int
Definition Classes

Inherited methods

final def arrLen: Int
Inherited from:
TileGridAncient
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
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 <: ElemValueN, M <: ArrValueNs[A]](f: Cood => A)(implicit ev: DataValueNsPersist[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
def foreachSidesXYAll(f: (Int, Int) => Unit): Unit

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

For all Sides call side effecting function on the Tile side's XY 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 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 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
def optTile(x: Int, y: Int): Option[TileT]
Inherited from:
TileGridAncient
final def rowForeachTileAll(y: Int)(f: TileT => Unit): Unit
Inherited from:
TileGridAncient
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
def rowTileXEnd(y: Int): Int
Inherited from:
TileGridAncient
def rowTileXStart(y: Int): Int
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
def setTileRect[A](xFrom: Int, xTo: Int, yFrom: Int, yTo: Int, tileValue: A)(implicit f: (Int, Int, A) => 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
Inherited from:
TileGridAncient
@inline
final def sideCoodsAll: Coods
Inherited from:
TileGridAncient
def sideNum: Int
Inherited from:
TileGridAncient
final def tileCoodsFoldAll[R](f: Cood => R, fSum: (R, R) => R)(emptyVal: R): R
Inherited from:
TileGridAncient
final def tileDestinguishColour(tileCood: Cood): Colour
Inherited from:
TileGridAncient
def tileNum: Int
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 <: SeqImut[B]](f: TileT => BB)(implicit build: ArrBuilder[B, BB]): BB
Inherited from:
TileGridAncient
def tilesFlatMapListAll[R : ClassTag](f: TileT => List[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 <: SeqImut[B]](f: TileT => B)(implicit build: ArrBuilder[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 <: SeqImut[A]](f: TileT => Option[A])(implicit build: ArrBuilder[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
final def xSideArrLen: Int
Inherited from:
TileGridAncient
final def xSideToInd(x: Int): Int
Inherited from:
TileGridAncient
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

override val arr: Array[TileT]
val turnNum: Int
override val xRatio: Double
val xTileMax: Int
val xTileMin: Int
override val yArrLen: Int
val yTileMax: Int
val yTileMin: Int

Inherited fields

val sideArr: Array[SideT]
Inherited from:
TileGridAncient

Implicits

Implicits

implicit val evSide: ClassTag[SideT]
implicit val evTile: ClassTag[TileT]