SqCenAccLayer

ostrat.prid.psq.SqCenAccLayer
See theSqCenAccLayer companion object
class SqCenAccLayer[A](val originsBuffer: Array[ArrayBuffer[Int]], val actionsBuffer: Array[ArrayBuffer[A]], gSysIn: SqGridSys)(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: SqCen, origin: SqCen, 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: (SqCen, SqCenPairArr[A]) => Unit): Unit

Side effecting function for initalising new game state layers.

Side effecting function for initalising new game state layers.

Attributes

def index(hc: SqCen): Int
def originActions(target: SqCen): SqCenPairArr[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: SqGridSys