SqCenLayer

ostrat.prid.psq.SqCenLayer
See theSqCenLayer companion object
final class SqCenLayer[A <: AnyRef](val arrayUnsafe: Array[A]) extends AnyVal, LayerTcRef[A]

A SqGridSys of immutable SqCen data, stored for efficiency as a flat Array. Most methods will rquire the SqGridSys as an implicit parameter.

Attributes

Companion
object
Graph
Supertypes
trait LayerTcRef[A]
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(sc: SqCen)(implicit gSys: SqGridSys): A
def fromArray(array: Array[A]): SqCenLayer[A]
final def setColumn[ArrA <: Arr[A]](c: Int, rStart: Int, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen

Set part column of data.

Set part column of data.

Attributes

final def setColumn(startCen: SqCen, multis: Multiple[A]*)(implicit grid: SqGrid): SqCen
final def setColumnDown(c: Int, rStart: Int, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen
def setColumnDown(startCen: SqCen, tileValues: Multiple[A]*)(implicit grid: SqGrid): SqCen
def setRect(yFrom: Int, yTo: Int, cFrom: Int, cTo: Int, tileValue: A)(implicit grid: SqGrid): Unit

Sets a rectangle of tiles to the same terrain type.

Sets a rectangle of tiles to the same terrain type.

Attributes

final def setRow(startCen: SqCen, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen

Set tile row from the SqCen.

Set tile row from the SqCen.

Attributes

final def setRow(r: Int, cStart: Int, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen

Note set Row starts with the r (row) parameter.

Note set Row starts with the r (row) parameter.

Attributes

final def setRowBack(r: Int, cStart: Int, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen

Note set RowBack starts with the r (row) parameter.

Note set RowBack starts with the r (row) parameter.

Attributes

final def setRowBack(startCen: SqCen, multiValues: Multiple[A]*)(implicit grid: SqGrid): SqCen
def setTerrPath(startR: Int, startC: Int, value: A, dirns: Multiple[SqStepPerp]*)(implicit grid: SqGrid): SqCen
def setTerrPath(startCen: SqCen, value: A, dirns: Multiple[SqStepPerp]*)(implicit grid: SqGrid): SqCen

Inherited methods

def foreach[U](f: A => U): Unit

For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.

For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.

Attributes

Inherited from:
LayerTcRef
final def length: Int

The number of tile centres this array of data represents.

The number of tile centres this array of data represents.

Attributes

Inherited from:
LayerTcRef
def map[B, BB <: Arr[B]](f: A => B)(implicit build: BuilderArrMap[B, BB]): BB

Each element in the underlying array is mapped by the parameter function to an element of type B. This method treat the HCenArr class like a standard Arr or Array. It does not utilise the grid HGrid from which this HCenArr was created.

Each element in the underlying array is mapped by the parameter function to an element of type B. This method treat the HCenArr class like a standard Arr or Array. It does not utilise the grid HGrid from which this HCenArr was created.

Attributes

Inherited from:
LayerTcRef
final def mutSetAll(value: A): Unit

Set all tiles to the given value.

Set all tiles to the given value.

Attributes

Inherited from:
LayerTcRef

Concrete fields

val arrayUnsafe: Array[A]

The mutable backing Array. End users should rarely if ever have to access this field

The mutable backing Array. End users should rarely if ever have to access this field

Attributes