TilesArrOpt

final
class TilesArrOpt[A <: AnyRef](val unsafeArr: Array[A]) extends AnyVal

An immutable Arr of Opt Tile data for a specific TileGrid. This is specialised for OptRef[A]. The tileGrid can map the Roord of the Tile to the index of the Arr. Hence most methods take an implicit TileGrid parameter.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def apply(roord: Roord)(implicit grid: TileGridOld): A

Accesses element from Refs Arr. Only use this method where you are certain it is not null, or the consumer can deal with the null.

Accesses element from Refs Arr. Only use this method where you are certain it is not null, or the consumer can deal with the null.

def flatMapSomes[ArrT <: ArrBase[_]](f: (Roord, A) => ArrT)(implicit grid: TileGridOld, build: ArrFlatBuilder[ArrT]): ArrT
def foreachSome(f: (Roord, A) => Unit)(implicit grid: TileGridOld): Unit
def length: Int
def mapSomeWithRoords[B, ArrT <: ArrBase[B]](f: (Roord, A) => B)(implicit grid: TileGridOld, build: ArrBuilder[B, ArrT]): ArrT
def mapSomes[B, ArrT <: ArrBase[B]](f: A => B)(implicit grid: TileGridOld, build: ArrBuilder[B, ArrT]): ArrT
def mutMove(r1: Roord, r2: Roord)(implicit grid: TileGridOld): Unit
def mutSetAll(value: A): Unit
def mutSetNone(r: Roord)(implicit grid: TileGridOld): Unit
def mutSetSome(y: Int, c: Int, value: A)(implicit grid: TileGridOld): Unit
def mutSetSome(r: Roord, value: A)(implicit grid: TileGridOld): Unit
def setSome(r: Roord, value: A)(implicit grid: TileGridOld): TilesArrOpt[A]
def unsafeSetSomes(triples: (Int, Int, A)*)(implicit grid: TileGridOld): Unit

Concrete fields

val unsafeArr: Array[A]