ostrat.prid.phex

Package for hex grids.

Attributes

Members list

Concise view

Type members

Classlikes

implicit class AnysExtensions(thisArr: AnyArr)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class HCen(val r: Int, val c: Int) extends HCenOrSide with TCen

A Hex tile centre hex grid HGrid coordinate.

A Hex tile centre hex grid HGrid coordinate.

Attributes

Companion:
object
Graph
Supertypes
trait TCen
trait HNotVert
trait HCoord
trait Comparable[HCoord]
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Object
trait Matchable
class Any
object HCen

Companion object of HCen trait, contains HVert values for hex tile 0, 0. As well as apply method and Show implicit.

Companion object of HCen trait, contains HVert values for hex tile 0, 0. As well as apply method and Show implicit.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HCen.type
final class HCenArr(val unsafeArray: Array[Int]) extends AnyVal with Int2Arr[HCen]

An efficient array[Int] based collection for HCens hex grid centre coordinates.

An efficient array[Int] based collection for HCens hex grid centre coordinates.

Attributes

Companion:
object
Graph
Supertypes
trait Int2Arr[HCen]
trait IntNArr[HCen]
trait Arr[HCen]
trait Sequ[HCen]
trait SeqLike[HCen]
class AnyVal
trait Matchable
class Any

Companion object for HCenArr trait efficient array[Int] based collection for HCens hex grid centre coordinates, contains factory apply and uninitialised methods..

Companion object for HCenArr trait efficient array[Int] based collection for HCens hex grid centre coordinates, contains factory apply and uninitialised methods..

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HCenArr.type
class HCenArrLayer[A](val unsafeArray: Array[Array[A]])

A HGridSys HCen data layer of RArrs.

A HGridSys HCen data layer of RArrs.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class HCenBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int2Buff[HCen]

Attributes

Companion:
object
Graph
Supertypes
trait Int2Buff[HCen]
trait IntNBuff[HCen]
trait Buff[HCen]
trait Sequ[HCen]
trait SeqLike[HCen]
class AnyVal
trait Matchable
class Any
object HCenBuff

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCenBuffLayer[A <: AnyRef](val unsafeArr: Array[ArrayBuffer[A]])

A HGridSys HCen layer of data buffers. An HCen hex tile centre grid of ArrayBuffers corresponding to the centres of an HGridSys hex tile grid system.

A HGridSys HCen layer of data buffers. An HCen hex tile centre grid of ArrayBuffers corresponding to the centres of an HGridSys hex tile grid system.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

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

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

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class HCenLayer[A <: AnyRef](val unsafeArray: Array[A]) extends AnyVal with TCenLayer[A]

An HGridSys hex tile grid system of HCen or hex tile data. For efficiency the data is stored as a flat Array. No run time information distinguishes this from an ordinary linear sequence array of data. Whether in a game or a non game application the data of the grid tiles is likely to change much more frequently than the size, shape, structure of the grid. The compiler knows this is hex grid array and hence the data should be set and retrieved through the HGrid hex grid. So nearly all the methods take the HGrid as an implicit parameter.

An HGridSys hex tile grid system of HCen or hex tile data. For efficiency the data is stored as a flat Array. No run time information distinguishes this from an ordinary linear sequence array of data. Whether in a game or a non game application the data of the grid tiles is likely to change much more frequently than the size, shape, structure of the grid. The compiler knows this is hex grid array and hence the data should be set and retrieved through the HGrid hex grid. So nearly all the methods take the HGrid as an implicit parameter.

Attributes

Companion:
object
Graph
Supertypes
trait TCenLayer[A]
trait RefsSeqLike[A]
trait SeqLike[A]
class AnyVal
trait Matchable
class Any
object HCenLayer

Companion object for HCenLayer, contains an apply factory method.

Companion object for HCenLayer, contains an apply factory method.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class HCenOptLayer[A <: AnyRef](val unsafeArray: Array[A]) extends AnyVal with TCenOptDGrid[A]

A HGridSys data layer of optional tile data. This is specialised for OptRef[A]. The tileGrid can map the HCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit HGridSys hex grid parameter.

A HGridSys data layer of optional tile data. This is specialised for OptRef[A]. The tileGrid can map the HCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit HGridSys hex grid parameter.

Attributes

Graph
Supertypes
trait TCenOptDGrid[A]
class AnyVal
trait Matchable
class Any
trait HCenOrSide extends HNotVert with TCenOrSide

Common trait for hex centre and hex side coordinate. The position of these coordinates is proportional, unlike the Hex vertices positions.

Common trait for hex centre and hex side coordinate. The position of these coordinates is proportional, unlike the Hex vertices positions.

Attributes

Companion:
object
Graph
Supertypes
trait HNotVert
trait HCoord
trait Comparable[HCoord]
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Object
trait Matchable
class Any
Known subtypes
class HCen
class HSide
object HCenOrSide

Companion object for HCenOrSide trait, contains factory apply method and implicit Persist instance.

Companion object for HCenOrSide trait, contains factory apply method and implicit Persist instance.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCenPair[A2](val a1Int1: Int, val a1Int2: Int, val a2: A2) extends ElemInt2Pair[HCen, A2]

Attributes

Companion:
object
Graph
Supertypes
trait ElemInt2Pair[HCen, A2]
trait ElemIntNPair[HCen, A2]
trait ElemPair[HCen, A2]
class Object
trait Matchable
class Any
object HCenPair

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCenPairArr[A2](val a1ArrayInt: Array[Int], val a2Array: Array[A2]) extends Int2PairArr[HCen, HCenArr, A2, HCenPair[A2]]

Attributes

Graph
Supertypes
trait Int2PairArr[HCen, HCenArr, A2, HCenPair[A2]]
trait IntNPairArr[HCen, HCenArr, A2, HCenPair[A2]]
trait PairArr[HCen, HCenArr, A2, HCenPair[A2]]
trait Arr[HCenPair[A2]]
trait Sequ[HCenPair[A2]]
trait SeqLike[HCenPair[A2]]
class Object
trait Matchable
class Any
class HCenPairArrMapBuilder[B2](implicit ct: ClassTag[B2]) extends Int2PairArrMapBuilder[HCen, HCenArr, B2, HCenPair[B2], HCenPairArr[B2]]

Attributes

Graph
Supertypes
class HCenPairBuff[B2](val b1IntBuffer: ArrayBuffer[Int], val b2Buffer: ArrayBuffer[B2]) extends Int2PairBuff[HCen, B2, HCenPair[B2]]

Attributes

Graph
Supertypes
trait Int2PairBuff[HCen, B2, HCenPair[B2]]
trait IntNPairBuff[HCen, B2, HCenPair[B2]]
trait PairBuff[HCen, B2, HCenPair[B2]]
trait Buff[HCenPair[B2]]
trait Sequ[HCenPair[B2]]
trait SeqLike[HCenPair[B2]]
class Object
trait Matchable
class Any
case class HCenRow(r: Int, c: Int, num: Int) extends HCenRowLike

A row or a segment a row of Hex tiles in a grid. The start / left centre HexGrid coordinate and the number of tiles in the row..

A row or a segment a row of Hex tiles in a grid. The start / left centre HexGrid coordinate and the number of tiles in the row..

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class HCenRow
class HCenRowTuple[A]
case class HCenRowTuple[A](r: Int, c: Int, num: Int, value: A) extends HCenRowLike

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class HCenStep(val r1: Int, val c1: Int, val stepInt: Int) extends ElemInt3

A hex grid step representing the starting HCen of the step as well as the HDirn singleton object itself.

A hex grid step representing the starting HCen of the step as well as the HDirn singleton object itself.

Attributes

Companion:
object
Graph
Supertypes
trait ElemInt3
trait ElemIntN
trait SpecialT
class Object
trait Matchable
class Any
object HCenStep

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCenStepArr(val unsafeArray: Array[Int]) extends Int3Arr[HCenStep]

Attributes

Companion:
object
Graph
Supertypes
trait Arr[HCenStep]
trait Sequ[HCenStep]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCenStepBuff(val unsafeBuffer: ArrayBuffer[Int]) extends Int3Buff[HCenStep]

Attributes

Companion:
object
Graph
Supertypes
trait Buff[HCenStep]
trait Sequ[HCenStep]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait HCoord extends TCoord with Ordered[HCoord]

A coordinate with in a Hex grid. It may be a Hex tile centre HCen, a HexSide HSide or Hex tile vertice HVert.

A coordinate with in a Hex grid. It may be a Hex tile centre HCen, a HexSide HSide or Hex tile vertice HVert.

Attributes

Companion:
object
Graph
Supertypes
trait Comparable[HCoord]
class Object
trait Matchable
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Any
Known subtypes
trait HNotVert
class HCen
class HSide
class HVert
object HCoord

Companion object for Hex coordinate trait, contains apply factory method and persist and PolygonBuilder implicit instances.

Companion object for Hex coordinate trait, contains apply factory method and persist and PolygonBuilder implicit instances.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HCoord.type
final class HCoordArr(val unsafeArray: Array[Int]) extends AnyVal with Int2Arr[HCoord] with HCoordSeqLike

Specialised sequence class for HCoord.

Specialised sequence class for HCoord.

Attributes

Graph
Supertypes
trait Arr[HCoord]
trait Sequ[HCoord]
class AnyVal
trait Matchable
class Any
final class HCoordBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int2Buff[HCoord]

Specialised sequence buffer class for HCoord.

Specialised sequence buffer class for HCoord.

Attributes

Companion:
object
Graph
Supertypes
trait Buff[HCoord]
trait Sequ[HCoord]
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HCoordOther(val r: Int, val c: Int) extends HNotVert

The only purpose of this class is to ensure that all HCoord combinations of r and c are valid. Thisis for the combinations where r is even and c is odd.

The only purpose of this class is to ensure that all HCoord combinations of r and c are valid. Thisis for the combinations where r is even and c is odd.

Attributes

Graph
Supertypes
trait HNotVert
trait HCoord
trait Comparable[HCoord]
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
Known subtypes

Attributes

Graph
Supertypes
Known subtypes
sealed trait HDirn extends TDirnSided with ElemInt1 with HDirnOpt

A step on a hex tile grid HGrid can take 6 values: upright right, downright, downleft, left and upleft.

A step on a hex tile grid HGrid can take 6 values: upright right, downright, downleft, left and upleft.

Attributes

Companion:
object
Graph
Supertypes
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Known subtypes
object HStepLt.type
object HStepUL.type
object HexDL.type
object HexDR.type
object HexRt.type
object HexUR.type
object HDirn

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HDirn.type
final class HDirnArr(val unsafeArray: Array[Int]) extends AnyVal with Int1Arr[HDirn]

An Arr of hex step directions.

An Arr of hex step directions.

Attributes

Companion:
object
Graph
Supertypes
trait Int1Arr[HDirn]
trait IntNArr[HDirn]
trait Arr[HDirn]
trait Sequ[HDirn]
trait SeqLike[HDirn]
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object HDirnNone extends HDirnOpt

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirnOpt
class Object
trait Matchable
class Any
Self type
sealed trait HDirnOpt

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait HDirn
object HStepLt.type
object HStepUL.type
object HexDL.type
object HexDR.type
object HexRt.type
object HexUR.type
object HDirnNone.type
object HDirnOpt

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
class HDirnPath(val unsafeArray: Array[Int]) extends ArrayIntBacked

A path consisting of a starting HCen and a sequence of HDirns.

A path consisting of a starting HCen and a sequence of HDirns.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class HDirnPathArr(val unsafeArrayOfArrays: Array[Array[Int]]) extends ArrayIntBackedArr[HDirnPath]

An Arr of paths consisting of a starting HCen and a sequence of HDirns.

An Arr of paths consisting of a starting HCen and a sequence of HDirns.

Attributes

Companion:
object
Graph
Supertypes
trait Arr[HDirnPath]
class Object
trait Matchable
class Any

Companion object for HDirnPathArr contains factory apply method.

Companion object for HDirnPathArr contains factory apply method.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HDirnPathPair[A2](val a1ArrayInt: Array[Int], val a2: A2) extends ArrayIntBackedPair[HDirnPath, A2]

An ElemPair where the first element is an HDirnPath, a path consisting of a starting HCen and a sequence of HDirns.

An ElemPair where the first element is an HDirnPath, a path consisting of a starting HCen and a sequence of HDirns.

Attributes

Companion:
object
Graph
Supertypes
trait ElemPair[HDirnPath, A2]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HDirnPathPairArr[A2](val a1Arrays: Array[Array[Int]], val a2Array: Array[A2]) extends ArrayIntBackedPairArr[HDirnPath, HDirnPathArr, A2, HDirnPathPair[A2]]

A PairArr where the first element is an HDirnPath, a path consisting of a starting HCen and a sequence of HDirns.

A PairArr where the first element is an HDirnPath, a path consisting of a starting HCen and a sequence of HDirns.

Attributes

Companion:
object
Graph
Supertypes
trait Arr[HDirnPathPair[A2]]
trait Sequ[HDirnPathPair[A2]]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HGView(val r: Int, val c: Int, val cPScale: Double) extends Show2[HCoord, Double]

A view of a hex grid, currently representing the HCoord focus and the pixels/dx scale.

A view of a hex grid, currently representing the HCoord focus and the pixels/dx scale.

Attributes

Companion:
object
Graph
Supertypes
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
class Object
trait Matchable
class Any
object HGView

Companion object for HGView class. Contains factory apply method overloads and implicit Persist instance.

Companion object for HGView class. Contains factory apply method overloads and implicit Persist instance.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HGView.type
trait HGrid extends TGrid with HGridSys

A grid of hexs. The grid may be a regular rectangle of hexs or an irregular grid with variable length rows.

A grid of hexs. The grid may be a regular rectangle of hexs or an irregular grid with variable length rows.

Attributes

Graph
Supertypes
trait HGridSys
trait TGrid
trait TGridSys
class Any
Known subtypes
class HGridIrr(val bottomCenR: Int, val unsafeRowsArray: Array[Int]) extends HGrid

An irregular hex grid, where the rows have different lengths and irregular start row coordinates. This is backed by an Array[Int]. The length of this Array is twice the number of tile rows in the grid. Each row from lowest to highest has two values length of the row in the number of tile centres HCens and the cTileMin coordinate for the row.

An irregular hex grid, where the rows have different lengths and irregular start row coordinates. This is backed by an Array[Int]. The length of this Array is twice the number of tile rows in the grid. Each row from lowest to highest has two values length of the row in the number of tile centres HCens and the cTileMin coordinate for the row.

Attributes

bottomCenR

The r value for the bottom tile row of the TileGrid.

tileRowsStartEnd

the Array contains 2 values per Tile Row, the cStart Tile and the cEnd Tile

Constructor:

creates a new HexGridIrr with a defined grid.

Companion:
object
Graph
Supertypes
trait HGrid
trait HGridSys
trait TGrid
trait TGridSys
class Object
trait Matchable
class Any
Known subtypes
object HGridIrr

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait HGridMan

HGrid manager.

HGrid manager.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait HGridMulti extends HGridSys with TGridMulti

A system of multiple HGrids.

A system of multiple HGrids.

Attributes

Graph
Supertypes
trait HGridSys
trait TGridSys
class Object
trait Matchable
class Any
Known subtypes
object Grids320S0E1.type
object Grids320S0E11.type
object Grids320S0E2.type
object Grids320S10E5.type
object Grids320S11E2.type
object Grids80s0e1.type
class HGrids2
Self type
class HGridReg(val bottomCenR: Int, val topCenR: Int, val leftCenC: Int, val rightCenC: Int) extends HGrid

A Regular hex grid where the tile rows have the same length, except the tile rows where r %% 4 == 2 may differ in length by 1 from tile rows where r %% 4 == 0 rows.

A Regular hex grid where the tile rows have the same length, except the tile rows where r %% 4 == 2 may differ in length by 1 from tile rows where r %% 4 == 0 rows.

Attributes

Companion:
object
Graph
Supertypes
trait HGrid
trait HGridSys
trait TGrid
trait TGridSys
class Object
trait Matchable
class Any
object HGridReg

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

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

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait HGridScen extends HSysScen

Attributes

Graph
Supertypes
trait HSysScen
class Object
trait Matchable
class Any
Known subtypes
class FourScen
object FourScen1.type
object FourScen2.type
object FourScen3.type
trait HGridSys extends TGridSys

System of hex tile grids. Can be a single HGrid or a system of multiple hex tile grids.

System of hex tile grids. Can be a single HGrid or a system of multiple hex tile grids.

Attributes

Graph
Supertypes
trait TGridSys
class Any
Known subtypes
abstract class HGridSysGui(title: String) extends TGridSysGui

Graphical User Interface for HGridSys hex grid syatems.

Graphical User Interface for HGridSys hex grid syatems.

Attributes

Graph
Supertypes
class CmdBarGui
class Object
trait Matchable
class Any
Known subtypes
class GFourGui
class GOneGui
class GThreeGui
class CivGui
class ZugGui
final class HGrids2(val minCenR: Int, val maxCenR: Int, val minC1: Int, val maxC1: Int, val minC2: Int, maxC2: Int) extends HGridMulti

This class may be removed. Its for the development of HGridSys. So just 2 regular grids side by side, to make an easy start on the general problem.

This class may be removed. Its for the development of HGridSys. So just 2 regular grids side by side, to make an easy start on the general problem.

Attributes

Companion:
object
Graph
Supertypes
trait HGridSys
trait TGridSys
class Object
trait Matchable
class Any
Self type
object HGrids2

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HGrids2.type
case class HNode(tile: HCen, var gCost: Int, var hCost: Int, var parent: OptRef[HNode])

Hex grid path finding node.

Hex grid path finding node.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait HNotVert extends HCoord

Attributes

Graph
Supertypes
trait HCoord
trait Comparable[HCoord]
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Object
trait Matchable
class Any
Known subtypes
class HCen
class HSide
class HSide(val r: Int, val c: Int) extends HCenOrSide with TSide

A Hex side coordinate in a Hex Grid. So Side 1 on its primary Hex tile goes from Vert 6 to 1 while it is Side 4 on its secondary Hex tile and goes from Vertex 4 to vertex 3 So Side 2 on its primary Hex tile goes from Vert 1 to 2 while it is Side 5 on its secondary Hex tile and goes from Vertex 5 to vertex 4 So Side 3 on its primary Hex tile goes from Vert 2 to 3 while it is Side 4 on its secondary Hex tile and goes from Vertex 6 to vertex 4

A Hex side coordinate in a Hex Grid. So Side 1 on its primary Hex tile goes from Vert 6 to 1 while it is Side 4 on its secondary Hex tile and goes from Vertex 4 to vertex 3 So Side 2 on its primary Hex tile goes from Vert 1 to 2 while it is Side 5 on its secondary Hex tile and goes from Vertex 5 to vertex 4 So Side 3 on its primary Hex tile goes from Vert 2 to 3 while it is Side 4 on its secondary Hex tile and goes from Vertex 6 to vertex 4

Attributes

Companion:
object
Graph
Supertypes
trait TSide
trait HNotVert
trait HCoord
trait Comparable[HCoord]
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class Object
trait Matchable
class Any
object HSide

Companion object for the HSide class, provides an apply factory method that throws an exception for an invalid Hex side coordinate.

Companion object for the HSide class, provides an apply factory method that throws an exception for an invalid Hex side coordinate.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HSide.type
final class HSideArr(val unsafeArray: Array[Int]) extends AnyVal with Int2Arr[HSide]

An efficient array[Int] based collection for HSides hex grid centre coordinates.

An efficient array[Int] based collection for HSides hex grid centre coordinates.

Attributes

Companion:
object
Graph
Supertypes
trait Int2Arr[HSide]
trait IntNArr[HSide]
trait Arr[HSide]
trait Sequ[HSide]
trait SeqLike[HSide]
class AnyVal
trait Matchable
class Any

Companion object for HSideArr trait efficient array[Int] based collection for HSides hex grid centre coordinates, contains factory apply and uninitialised methods.

Companion object for HSideArr trait efficient array[Int] based collection for HSides hex grid centre coordinates, contains factory apply and uninitialised methods.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class HSideBoolLayer(val unsafeArray: Array[Boolean]) extends AnyVal with BooleanSeqSpec

Boolean data corresponding to the sides of a HGridSys hex grid system , stored using an underlying Array[Boolean]. Thhese classes should be created, initalised and used using an [HGrid]] class. For convenience the HGrid is passed as an implicit parameter.

Boolean data corresponding to the sides of a HGridSys hex grid system , stored using an underlying Array[Boolean]. Thhese classes should be created, initalised and used using an [HGrid]] class. For convenience the HGrid is passed as an implicit parameter.

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class HSideBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int2Buff[HSide]

Attributes

Graph
Supertypes
trait Buff[HSide]
trait Sequ[HSide]
trait SeqLike[HSide]
class AnyVal
trait Matchable
class Any
class HSideLayer[A <: AnyRef](val unsafeArr: Array[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class HStepBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int1Buff[HDirn]

ArrayBuffer based buffer class for Colours.

ArrayBuffer based buffer class for Colours.

Attributes

Companion:
object
Graph
Supertypes
trait Buff[HDirn]
trait Sequ[HDirn]
trait SeqLike[HDirn]
class AnyVal
trait Matchable
class Any
object HStepBuff

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HStepCen(val stepInt: Int, val r2: Int, val c2: Int) extends ElemInt3

Hex centre origin and hex step.

Hex centre origin and hex step.

Attributes

Companion:
object
Graph
Supertypes
trait ElemInt3
trait ElemIntN
trait SpecialT
class Object
trait Matchable
class Any
object HStepCen

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HStepCenArr(val unsafeArray: Array[Int]) extends Int3Arr[HStepCen]

Attributes

Companion:
object
Graph
Supertypes
trait Arr[HStepCen]
trait Sequ[HStepCen]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class HStepCenBuff(val unsafeBuffer: ArrayBuffer[Int]) extends Int3Buff[HStepCen]

Attributes

Graph
Supertypes
trait Buff[HStepCen]
trait Sequ[HStepCen]
class Object
trait Matchable
class Any
case object HStepLt extends HDirn

A step left on a hex tile grid HGrid.

A step left on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HStepLt.type
case object HStepUL extends HDirn

A step upleft on a hex tile grid HGrid.

A step upleft on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HStepUL.type

Hex grid system graphics projection.

Hex grid system graphics projection.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class HSysProjectionFlat(parent: HGridSys, panel: Panel) extends HSysProjection with TSysProjectionFlat

Projects HGridSys on to a flat surface for 2D graphics. Like all projections attempts to remove tiles that can't be seen.

Projects HGridSys on to a flat surface for 2D graphics. Like all projections attempts to remove tiles that can't be seen.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait HSysScen

Scenario based on a HGrid system.

Scenario based on a HGrid system.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EScenFlat
object Scen320S0E11.type
object Scen320S0E2.type
object Scen320S10E5.type
object Scen320S11E2.type
object Scen320s0e1.type
object Scen80s0s1.type
trait HGridScen
class FourScen
object FourScen1.type
object FourScen2.type
object FourScen3.type
trait OneScen
object OneScen1.type
object OneScen10.type
object OneScen2.type
object OneScen3.type
object OneScen4.type
object OneScen5.type
object OneScen6.type
object OneScen7.type
object OneScen8.type
object OneScen9.type
trait ThreeScen
object ThreeScen1.type
object ThreeScen2.type
object ThreeScen3.type
object ThreeScen4.type
object ThreeScen5.type
object ThreeScen6.type
trait CivScen
object Civ1.type
object Civ2.type
trait ZugScen
object Zug1.type
object Zug2.type
object Zug3.type

Attributes

Graph
Supertypes
trait HSysScen
class Object
trait Matchable
class Any
Known subtypes
trait OneScen
object OneScen1.type
object OneScen10.type
object OneScen2.type
object OneScen3.type
object OneScen4.type
object OneScen5.type
object OneScen6.type
object OneScen7.type
object OneScen8.type
object OneScen9.type
trait ThreeScen
object ThreeScen1.type
object ThreeScen2.type
object ThreeScen3.type
object ThreeScen4.type
object ThreeScen5.type
object ThreeScen6.type
trait CivScen
object Civ1.type
object Civ2.type
trait ZugScen
object Zug1.type
object Zug2.type
object Zug3.type
final class HVOffset extends AnyVal with ElemInt1

Attributes

Graph
Supertypes
trait ElemInt1
trait ElemIntN
trait SpecialT
class AnyVal
trait Matchable
class Any
final class HVert extends AnyVal with HCoord with TCoord

A hex tile vertex coordinate.

A hex tile vertex coordinate.

Attributes

Companion:
object
Graph
Supertypes
trait HCoord
trait Comparable[HCoord]
class Object
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait Point
class AnyVal
trait Matchable
class Any
object HVert

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HVert.type
final class HVertArr(val unsafeArray: Array[Int]) extends AnyVal with HVertSeqLike with Int2Arr[HVert]

An array[Int] based collection for HVert.

An array[Int] based collection for HVert.

Attributes

Companion:
object
Graph
Supertypes
trait Int2Arr[HVert]
trait IntNArr[HVert]
trait Arr[HVert]
trait Sequ[HVert]
trait SeqLike[HVert]
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class HVertBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int2Buff[HVert]

Attributes

Graph
Supertypes
trait Buff[HVert]
trait Sequ[HVert]
trait SeqLike[HVert]
class AnyVal
trait Matchable
class Any

Common trait for Hverts and PolygonHC

Common trait for Hverts and PolygonHC

Attributes

Graph
Supertypes
Known subtypes
class HVertArr
case object HexDL extends HDirn

A step downleft on a hex tile grid HGrid.

A step downleft on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HexDL.type
case object HexDR extends HDirn

A step downright on a hex tile grid HGrid.

A step downright on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HexDR.type
trait HexMem[A]

Not sure about this trait for occupants of a hex tile.

Not sure about this trait for occupants of a hex tile.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class HexMemImp[A]
trait HexMemShow[A]
class HPlayer
class HSquad
object HexMem

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HexMem.type
trait HexMemShow[A] extends HexMem[A] with Show2[HCen, A]

Attributes

Graph
Supertypes
trait Show2[HCen, A]
trait TypeStr2[HCen, A]
trait TypeStr2Plus[HCen, A]
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
trait HexMem[A]
class Object
trait Matchable
class Any
Known subtypes
class HPlayer
class HSquad
case object HexRt extends HDirn

A step right on a hex tile grid HGrid.

A step right on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HexRt.type
case object HexUR extends HDirn

A step upright on a hex tile grid HGrid.

A step upright on a hex tile grid HGrid.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HDirn
trait HDirnOpt
trait ElemInt1
trait ElemIntN
trait SpecialT
trait TDirn
class Object
trait Matchable
class Any
Self type
HexUR.type
implicit class IntGridImplicit(thisInt: Int)

phex package extensions for Int.

phex package extensions for Int.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class LinePathHC(val unsafeArray: Array[Int]) extends AnyVal with HCoordSeqSpec with LinePathInt2[HCoord]

A trait for classes of line paths specified by [HCoord hex grid tile coordinates.

A trait for classes of line paths specified by [HCoord hex grid tile coordinates.

Attributes

Companion:
object
Graph
Supertypes

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class LineSegHC(r1: Int, c1: Int, r2: Int, c2: Int) extends LineSegLikeInt4[HCoord] with ElemInt4

A 2d line upon a HexGrid defined by its start and end HGrid HCoords.

A 2d line upon a HexGrid defined by its start and end HGrid HCoords.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ElemInt4
trait ElemIntN
trait SpecialT
class Object
trait Matchable
class Any
object LineSegHC

companion object for LineSegHC class contains factory apply method.

companion object for LineSegHC class contains factory apply method.

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class LineSegHCArr(val unsafeArray: Array[Int]) extends Int4Arr[LineSegHC]

Compact immutable Array[Int] based collection class for LineSegHCs. LineSegHC is the library's term for a mathematical straight line segment, but what in common parlance is often just referred to as a line.

Compact immutable Array[Int] based collection class for LineSegHCs. LineSegHC is the library's term for a mathematical straight line segment, but what in common parlance is often just referred to as a line.

Attributes

Companion:
object
Graph
Supertypes

Companion object for the LineSegHCs class.

Companion object for the LineSegHCs class.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class LineSegHCBuff(val unsafeBuffer: ArrayBuffer[Int]) extends AnyVal with Int4Buff[LineSegHC]

Efficient expandable buffer for Line2s.

Efficient expandable buffer for Line2s.

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class LineSegHCPair[A2](val a1Int1: Int, val a1Int2: Int, val a1Int3: Int, val a1Int4: Int, val a2: A2) extends LineSegLikeInt4Pair[HCoord, LineSegHC, A2]

SqCood defined LineSegLike ElemPair.

SqCood defined LineSegLike ElemPair.

Attributes

Companion:
object
Graph
Supertypes
trait ElemPair[LineSegHC, A2]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class LineSegHCPairArr[A2](val a1ArrayInt: Array[Int], val a2Array: Array[A2]) extends LineSegLikeInt4PairArr[HCoord, LineSegHC, LineSegHCArr, A2, LineSegHCPair[A2]]

Attributes

Graph
Supertypes

Attributes

Graph
Supertypes
Known subtypes

Attributes

Graph
Supertypes

Attributes

Graph
Supertypes
class LineSegHCPairBuff[B2](val b1IntBuffer: ArrayBuffer[Int], val b2Buffer: ArrayBuffer[B2]) extends Int4PairBuff[LineSegHC, B2, LineSegHCPair[B2]]

Specialised Buff class for LineSegHCPairs, that uses two backing ArrayBuffers.

Specialised Buff class for LineSegHCPairs, that uses two backing ArrayBuffers.

Attributes

Graph
Supertypes
trait Buff[LineSegHCPair[B2]]
trait Sequ[LineSegHCPair[B2]]
class Object
trait Matchable
class Any
final class PolygonHC(val unsafeArray: Array[Int]) extends AnyVal with HCoordSeqSpec with PolygonLikeInt2[HCoord] with ArrayIntBacked

A polygon with the vertices defined by hex tile coordinates HCoords.

A polygon with the vertices defined by hex tile coordinates HCoords.

Attributes

Companion:
object
Graph
Supertypes

Companion object for the polygon whose vertices are defined by hex tile coordinates PolygonHC trait.

Companion object for the polygon whose vertices are defined by hex tile coordinates PolygonHC trait.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class PolygonHCArr(val unsafeArrayOfArrays: Array[Array[Int]]) extends ArrayIntBackedArr[PolygonHC]

Attributes

Graph
Supertypes
trait Arr[PolygonHC]
class Object
trait Matchable
class Any
final class PolygonHCBuff(val unsafeBuffer: ArrayBuffer[Array[Int]]) extends AnyVal with ArrayIntBuff[PolygonHC]

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class PolygonHCPair[A2](val a1ArrayInt: Array[Int], val a2: A2) extends PolygonLikeIntNPair[HCoord, PolygonHC, A2]

A PolygonHC, a Polygon with the vertices defined in HCoords paired with an object of type A2.

A PolygonHC, a Polygon with the vertices defined in HCoords paired with an object of type A2.

Attributes

Companion:
object
Graph
Supertypes
trait SpecialT
trait ElemPair[PolygonHC, A2]
class Object
trait Matchable
class Any

Companion object for a PolygonHC, a Polygon with the vertices defined in HCoords paired with an object of type A2. Contains implicit build instance for PolygonHCPArr.

Companion object for a PolygonHC, a Polygon with the vertices defined in HCoords paired with an object of type A2. Contains implicit build instance for PolygonHCPArr.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class PolygonHCPairArr[A2](val a1Arrays: Array[Array[Int]], val a2Array: Array[A2]) extends PolygonLikeIntNPairArr[HCoord, PolygonHC, PolygonHCArr, A2, PolygonHCPair[A2]]

An Arr of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

An Arr of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

Attributes

Graph
Supertypes
class PolygonHCPairBuff[A2](val b1Buffer: ArrayBuffer[Array[Int]], val b2Buffer: ArrayBuffer[A2]) extends SeqLikeIntNPairBuff[HCoord, PolygonHC, A2, PolygonHCPair[A2]]

A buffer of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

A buffer of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

Attributes

Graph
Supertypes
trait Buff[PolygonHCPair[A2]]
trait Sequ[PolygonHCPair[A2]]
class Object
trait Matchable
class Any
final class PolygonHCPairBuild[A2](implicit val b2ClassTag: ClassTag[A2], notB: <none>[A2]) extends SeqLikeIntNPairArrBuilder[HCoord, PolygonHC, PolygonHCArr, A2, PolygonHCPair[A2], PolygonHCPairArr[A2]]

A builder for ann Arr of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

A builder for ann Arr of PolygonHC pairs. A Polygon with the vertices defined in HCoords paired with an object of type A2.

Attributes

Graph
Supertypes

Value members

Concrete fields

The hex centre step values.

The hex centre step values.

Attributes

Implicits

Implicits

final implicit def AnysExtensions(thisArr: AnyArr): AnysExtensions
final implicit def IntGridImplicit(thisInt: Int): IntGridImplicit

phex package extensions for Int.

phex package extensions for Int.

Attributes