HCenAccPairLayer

ostrat.prid.phex.HCenAccPairLayer
See theHCenAccPairLayer companion object
class HCenAccPairLayer[A](val originsBuffer: Array[ArrayBuffer[Int]], val actionsBuffer: Array[ArrayBuffer[A]], gSysIn: HGridSys)(implicit val ct: ClassTag[A])

This is a helper class for turn / segment resolution. It accumulates all actions along with the origin of the action, upon a hex tile.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def append(target: HCen, origin: HCen, action: A): Unit

Appends an origin-action pair to this given target hex's accumulator.

Appends an origin-action pair to this given target hex's accumulator.

Attributes

def foreach(f: (HCen, HCenPairArr[A]) => Unit): Unit

Side effecting function for initialising new game state layers.

Side effecting function for initialising new game state layers.

Attributes

def index(hc: HCen): Int
def originActions(target: HCen): HCenPairArr[A]

This produces the collection of origin-action pairs upon the given hex tile.

This produces the collection of origin-action pairs upon the given hex tile.

Attributes

Implicits

Implicits

implicit val ct: ClassTag[A]
implicit val gSys: HGridSys