EuropeNEGridOld

class Object
trait Matchable
class Any

Value members

Inherited methods

def SidesHorr(y: Int, xStart: Int, xEnd: Int): Roords

Gives a Coods Seq of Cood along a horisonatal line

Gives a Coods Seq of Cood along a horisonatal line

Inherited from
HexGridOld

The active tiles without any PaintElems.

The active tiles without any PaintElems.

Definition Classes
Inherited from
HexGridOld
def arrIndex(y: Int, c: Int): Int

Gives the index into a Tile Array for an irregular Hex Grid from its Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

Gives the index into a Tile Array for an irregular Hex Grid from its Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

Inherited from
HexGridIrrOld
@inline
final def arrIndex(r: Roord): Int

Gives the index into an Arr / Array of Tile data from its tile Roord. 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 Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

Inherited from
TileGridOld
def bottom: Double
Inherited from
HexGridOld
def cCen: Double
Inherited from
HexGridOld
def cRowEnd(y: Int): Int

c Tile Row End value for a given y Row.

c Tile Row End value for a given y Row.

Inherited from
HexGridIrrOld
def cRowLen(y: Int): Int

Tile Row length for a give n y Row.

Tile Row length for a give n y Row.

Inherited from
HexGridIrrOld
def cRowStart(y: Int): Int

c Tile Row start value for a given y Row.

c Tile Row start value for a given y Row.

Inherited from
HexGridIrrOld
override def cSideRowMin(y: Int): Int

Return the Side Row start for the given Row y value.

Return the Side Row start for the given Row y value.

Definition Classes
Inherited from
HexGridIrrOld
def cStep: Int

The c delta between tiles.

The c delta between tiles.

Inherited from
HexGridOld
def cTileMax: Int

Maximum c or column value. This is not called x because in some grids there is not a 1 to 1 ratio from column coordinate to x.

Maximum c or column value. This is not called x because in some grids there is not a 1 to 1 ratio from column coordinate to x.

Inherited from
HexGridIrrOld
final override def cTileMin: Int

Minimum c or column value. This is not called x because in some grids there is not a 1 to 1 ratio from column coordinate to x.

Minimum c or column value. This is not called x because in some grids there is not a 1 to 1 ratio from column coordinate to x.

Definition Classes
Inherited from
HexGridIrrOld
def cenPt: Pt2

The centre point of the grid in Vec2 coordinates.

The centre point of the grid in Vec2 coordinates.

Inherited from
TileGridOld
final def cenRoordIndexTexts(textSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld
def cenRoordTexts(textSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld

Quick method to give the Tile, Side and Vertex Roord Text Grahics.

Quick method to give the Tile, Side and Vertex Roord Text Grahics.

Inherited from
TileGridOld
def cenVec: Vec2

The centre of the grid in Vec2 coordinates.

The centre of the grid in Vec2 coordinates.

Inherited from
TileGridOld
def findPath(startRoord: Roord, endRoord: Roord)(fTerrCost: (Roord, Roord) => OptInt): Option[List[Roord]]
Inherited from
HexGridOld
final def flatMap[ArrT <: ArrImut[_]](f: Roord => ArrT)(implicit build: ArrTFlatBuilder[ArrT]): ArrT

flatMaps from all tile Roords to an Arr of type ArrT. The elements of this array can not be accessed from this gird class as the TileGrid structure is lost in the flatMap operation.

flatMaps from all tile Roords to an Arr of type ArrT. The elements of this array can not be accessed from this gird class as the TileGrid structure is lost in the flatMap operation.

Inherited from
TileGridOld
final def flatMapNoDupicates[A, ArrT <: ArrImut[A]](f: Roord => ArrT)(implicit build: ArrTBuilder[A, ArrT]): ArrT

flatmaps from all tile Roords to an Arr of type ArrT, removing all duplicate elements.

flatmaps from all tile Roords to an Arr of type ArrT, removing all duplicate elements.

Inherited from
TileGridOld
final def foreach(f: Roord => Unit): Unit

foreachs over each tile's centre Roord.

foreachs over each tile's centre Roord.

Inherited from
TileGridOld
final def foreachRVec(f: (Roord, Pt2) => Unit): Unit

foreachs over each tile's Roord and its centre Vec2.

foreachs over each tile's Roord and its centre Vec2.

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

Foreach grid Row y coordinate.

Foreach grid Row y coordinate.

Inherited from
TileGridOld
def fullDisplayScale(dispWidth: Double, dispHeight: Double, padding: Double): Double
Inherited from
TileGridOld
def getHCost(startRoord: Roord, endRoord: Roord): 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
HexGridOld
def height: Double
Inherited from
TileGridOld
final def iMap[A, ArrT <: ArrImut[A]](f: (Roord, Int) => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

Maps from all tile Roords with index to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.

Maps from all tile Roords with index to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.

Inherited from
TileGridOld
def isTileRoord(r: Roord): Boolean
Inherited from
HexGridOld
final def map[A, ArrT <: ArrImut[A]](f: Roord => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

Maps from all tile Roords to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.

Maps from all tile Roords to an Arr of A. The Arr produced can be accessed by its Roord from this grid Class.

Inherited from
TileGridOld
final def mapRPolygons[A, ArrT <: ArrImut[A]](f: (Roord, PolygonImp) => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

maps over each tile's Roord and its Polygon.

maps over each tile's Roord and its Polygon.

Inherited from
TileGridOld

New immutable Arr of Side Boolean data.

New immutable Arr of Side Boolean data.

Inherited from
TileGridOld
final def newTileArr[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): TilesArr[A]

New immutable Arr of Tile data.

New immutable Arr of Tile data.

Inherited from
TileGridOld
final def newTileArrOpt[A <: AnyRef](implicit ct: ClassTag[A]): TilesArrOpt[A]

New Tile immutable Tile Arr of Opt data values.

New Tile immutable Tile Arr of Opt data values.

Inherited from
TileGridOld
final def newTileArray[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): Array[A]

New mutable Array of Tile data. All tiles set to an initial value.

New mutable Array of Tile data. All tiles set to an initial value.

Inherited from
TileGridOld
final def newTileArrayList[A](value: List[A]): Array[List[A]]

New mutable Array of Tile data Lists.

New mutable Array of Tile data Lists.

Inherited from
TileGridOld

New immutable Arr of Side Boolean data.

New immutable Arr of Side Boolean data.

Inherited from
TileGridOld

New immutable Arr of vertex Int data.

New immutable Arr of vertex Int data.

Inherited from
TileGridOld
@inline
final def numOfSideRows: Int

The number of Rows of Sides.

The number of Rows of Sides.

Inherited from
TileGridOld
override def numOfTileRows: Int

Number of rows of tiles. This will be different to the number of rows of sides and the number of rows of vertices.

Number of rows of tiles. This will be different to the number of rows of sides and the number of rows of vertices.

Definition Classes
Inherited from
HexGridIrrOld
def numOfTiles: Int

The number of Tiles in the TileGrid.

The number of Tiles in the TileGrid.

Inherited from
HexGridIrrOld
@inline
final def numOfVertRows: Int

The number of Rows of vertices.

The number of Rows of vertices.

Inherited from
TileGridOld
Inherited from
HexGridOld
Inherited from
HexGridOld
Inherited from
TileGridOld
override def roordToPt2(roord: Roord): Pt2
Definition Classes
Inherited from
HexGridOld
def roordToPt2(y: Int, c: Int): Pt2

Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.

Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.

Inherited from
TileGridOld
def roordToVec(y: Int, c: Int): Vec2

Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.

Converts Roord, input as y and components, to a Vec2. For a square grid this will be a simple 1 to 1 map.

Inherited from
TileGridOld
def roordToVec(roord: Roord): Vec2

Converts Roord to a Vec2. For a square grid this will be a simple 1 to 1 map.

Converts Roord to a Vec2. For a square grid this will be a simple 1 to 1 map.

Inherited from
TileGridOld
def roordToVec2Rel(roord: Roord, scale: Double, gridPosn: Pt2): Pt2

This gives the Vec2 of the Roord relative to a position on the grid and then scaled. (roordToVec2Abs(roord) - gridPosn -cen) * scale

This gives the Vec2 of the Roord relative to a position on the grid and then scaled. (roordToVec2Abs(roord) - gridPosn -cen) * scale

Inherited from
TileGridOld
override def rowForeachSide(y: Int)(f: Roord => Unit): Unit

foreachs over each Side's Roord in the given Row. Users will not normally need to access this method directly.

foreachs over each Side's Roord in the given Row. Users will not normally need to access this method directly.

Definition Classes
Inherited from
HexGridIrrOld
def rowForeachTile(y: Int)(f: Roord => Unit): Unit

foreach Tile in a given Row, calls the effectful function on the Tiles Roord.

foreach Tile in a given Row, calls the effectful function on the Tiles Roord.

Inherited from
HexGridIrrOld
override def rowForeachVert(y: Int)(f: Roord => Unit): Unit

foreach Vertice's Roord in the vertex row applies the effectful function.

foreach Vertice's Roord in the vertex row applies the effectful function.

Definition Classes
Inherited from
HexGridIrrOld
def setTile[A <: AnyRef](xi: Int, yi: Int, value: A)(implicit arr: Arr[A]): Unit

Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.

Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.

Inherited from
TileGridOld
def setTile[A <: AnyRef](roord: Roord, value: A)(implicit arr: Arr[A]): Unit

Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.

Method may be removed, probably better to dispatch from the Arr, with the grid as parameter.

Inherited from
TileGridOld
def setTile[A](roord: Roord, value: A)(implicit arr: ArrImut[A]): Unit

Sets element in a flat Tiles Arr according to its Roord.

Sets element in a flat Tiles Arr according to its Roord.

Inherited from
TileGridOld
override def sideArrIndex(y: Int, c: Int): Int

Method gives the index into an Arr / Array of Side Data for a given Side Roord.

Method gives the index into an Arr / Array of Side Data for a given Side Roord.

Definition Classes
Inherited from
HexGridIrrOld
@inline
final def sideArrIndex(roord: Roord): Int

The index from a Side Roord into an Arr of Side data.

The index from a Side Roord into an Arr of Side data.

Inherited from
TileGridOld
def sideInnerRowForeach(f: Int => Unit): Unit
Inherited from
TileGridOld
final def sideLines: LineSegs
Inherited from
TileGridOld
Inherited from
HexGridOld
def sideRoordIndexTexts(textSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld
def sideRoordTexts(textSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld
final def sideRoordToLine2(sideRoord: Roord): LineSeg

Side Roord to Line2 relative to a position on the grid and then scaled.

Side Roord to Line2 relative to a position on the grid and then scaled.

Inherited from
TileGridOld
override def sideRoordToRoordLine(sideRoord: Roord): RoordLine
Definition Classes
Inherited from
HexGridOld

Gives all the sideRoords of the grid with out duplicates.

Gives all the sideRoords of the grid with out duplicates.

Inherited from
TileGridOld
override def sideRoordsOfTile(tileRoord: Roord): Roords
Definition Classes
Inherited from
HexGridOld
def sideRowForeach(f: Int => Unit): Unit

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
TileGridOld
final def sidesDraw(lineWidth: Double, colour: Colour): 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
TileGridOld
final def sidesForeach(f: Roord => Unit): Unit

foreach side's Roords, calls the effectful function.

foreach side's Roords, calls the effectful function.

Inherited from
TileGridOld
def sidesIMap[A, ArrT <: ArrImut[A]](f: (Roord, Int) => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

Maps from each sides Roord to an ArrBase of A.

Maps from each sides Roord to an ArrBase of A.

Inherited from
TileGridOld
def sidesMap[A, ArrT <: ArrImut[A]](f: Roord => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

Maps from each sides Roord to an ArrBase of A.

Maps from each sides Roord to an ArrBase of A.

Inherited from
TileGridOld
final override def tileExists(y: Int, c: Int): Boolean
Definition Classes
Inherited from
HexGridOld
final def tileExists(r: Roord): Boolean

Tests whether the Tile exists within the TileGrid. Will throw on an invalid Tile Roord.

Tests whether the Tile exists within the TileGrid. Will throw on an invalid Tile Roord.

Inherited from
TileGridOld
override def tileVertRoords(roord: Roord): Roords
Definition Classes
Inherited from
HexGridOld
def top: Double
Inherited from
HexGridOld
def vertRoordIndexTexts(textSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld
def vertRoordTexts(fontSize: Int, colour: Colour): Arr[TextGraphic]
Inherited from
TileGridOld
Inherited from
TileGridOld
final def vertRowForeach(f: Int => Unit): Unit

Foreach row of vertices apply the effctful function taking the y dimension as parameter.

Foreach row of vertices apply the effctful function taking the y dimension as parameter.

Inherited from
TileGridOld
final def vertsForeach(f: Roord => Unit): Unit

foreach vertex's Roord, calls the effectful function.

foreach vertex's Roord, calls the effectful function.

Inherited from
TileGridOld
def vertsIMap[A, ArrT <: ArrImut[A]](f: (Roord, Int) => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

Maps from each vertex's Roord with index, to a specialised Arr of type A.

Maps from each vertex's Roord with index, to a specialised Arr of type A.

Inherited from
TileGridOld
def vertsMap[A, ArrT <: ArrImut[A]](f: Roord => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT

maps from each Vertex's Roord to a value of type A. Returns a specialiased immutable Arr.

maps from each Vertex's Roord to a value of type A. Returns a specialiased immutable Arr.

Inherited from
TileGridOld
def width: Double
Inherited from
TileGridOld
override def xCen: Double
Definition Classes
Inherited from
HexGridOld
override def xLeft: Double
Definition Classes
Inherited from
HexGridOld
override def xRight: Double
Definition Classes
Inherited from
HexGridOld
def yCen: Double

The centre of the grid by the y coordinate.

The centre of the grid by the y coordinate.

Inherited from
TileGridOld
@inline
final def ySideMax: Int

The top Side Row of this TileGrid. The y value.

The top Side Row of this TileGrid. The y value.

Inherited from
TileGridOld
@inline
final def ySideMin: Int

The bottom Side Row of this TileGrid. The y value.

The bottom Side Row of this TileGrid. The y value.

Inherited from
TileGridOld
@inline
override def yTileMax: Int

The maximum y Row value for this HexGridIrr.

The maximum y Row value for this HexGridIrr.

Definition Classes
Inherited from
HexGridIrrOld
@inline
final def yVertMax: Int

The top Row of Tile vertices.

The top Row of Tile vertices.

Inherited from
TileGridOld
@inline
final def yVertMin: Int

The bottom row of Tile vertices.

The bottom row of Tile vertices.

Inherited from
TileGridOld

Inherited fields

final val numOfSides: Int

The number of Sides in the TileGrid.

The number of Sides in the TileGrid.

Inherited from
TileGridOld
final val numOfVerts: Int

The number of tile vertices in the TileGrid.

The number of tile vertices in the TileGrid.

Inherited from
TileGridOld
val sideRowIndexArray: Array[Int]

An Array of index values into an Array of Side data. 1 Int value for the start index of each Row.

An Array of index values into an Array of Side data. 1 Int value for the start index of each Row.

Inherited from
HexGridIrrOld
val tileRowIndexArray: Array[Int]

An Array of index values into an Array of Tile data 1 Int index value for each Tile Row, containing the Tile data Array index for the beginning of the tileRow.

An Array of index values into an Array of Tile data 1 Int index value for each Tile Row, containing the Tile data Array index for the beginning of the tileRow.

Inherited from
HexGridIrrOld
val tileRowsStartEnd: Array[Int]
Inherited from
HexGridIrrOld
override val yTileMin: Int
Inherited from
HexGridIrrOld