HCenAccLayer

ostrat.prid.phex.HCenAccLayer
See theHCenAccLayer companion object
class HCenAccLayer(val originsBuffer: Array[ArrayBuffer[Int]], gSysIn: HGridSys)

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): 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, HCenArr) => 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): HCenArr

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

Concrete fields

Implicits

Implicits

implicit val gSys: HGridSys