SqCenLayer

ostrat.prid.psq.SqCenLayer
See theSqCenLayer companion object
final class SqCenLayer[A <: AnyRef](val unsafeArray: Array[A]) extends AnyVal with TCenLayer[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 TCenLayer[A]
trait RefsSeqLike[A]
trait SeqLike[A]
class AnyVal
trait Matchable
class Any

Members list

Concise view

Type members

Types

override type ThisT = SqCenLayer[A]

Gives the final type of this class.

Gives the final type of this class.

Attributes

Value members

Concrete methods

def apply(sc: SqCen)(implicit gSys: SqGridSys): A
override def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Attributes

Definition Classes
override def fromArray(array: Array[A]): SqCenLayer[A]

Attributes

Definition Classes
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[SqDirnPerp]*)(implicit grid: SqGrid): SqCen
def setTerrPath(startCen: SqCen, value: A, dirns: Multiple[SqDirnPerp]*)(implicit grid: SqGrid): SqCen
override def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Attributes

Definition Classes

Inherited methods

final override def fElemStr: (A) => String

Attributes

Definition Classes
Inherited from:
RefsSeqLike
def foreach[U](f: A => U): Unit

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

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

Attributes

Inherited from:
TCenLayer
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:
TCenLayer
def map[B, BB <: Arr[B]](f: A => B)(implicit build: ArrMapBuilder[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:
TCenLayer
final def mutSetAll(value: A): Unit

Set all tiles to the given value.

Set all tiles to the given value.

Attributes

Inherited from:
TCenLayer
override def ssForeach[U](f: A => U): Unit

Performs a side effecting function on each element of the specifying sequence in order.

Performs a side effecting function on each element of the specifying sequence in order.

Attributes

Definition Classes
Inherited from:
TCenLayer
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
SeqLike -> Any
Inherited from:
SeqLike
final override def unsafeSetElem(i: Int, newElem: A): Unit

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Definition Classes
Inherited from:
RefsSeqLike
def unsafeSetElems(index: Int, elems: A*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Inherited from:
SeqLike

Concrete fields

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