TileCenArr

trait TileCenArr[A <: AnyRef]

An Array of tile centre data of type A. An appropriate SqGrid or HGrid is required to utilise its functionality.

class Any
class HCenArr[A]
class SqCenArr[A]

Value members

Abstract methods

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

Concrete methods

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

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

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

final def length: Int

The number of tile centres this array of data represents.

The number of tile centres this array of data represents.

def map[B, BB <: SeqImut[B]](f: A => B)(implicit build: ArrBuilder[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.

final def mutSetAll(value: A): Unit

Set all tiles to the given value.

Set all tiles to the given value.