SqCenArrOpt
An immutable Arr of Opt Tile data for a specific square tile grid SqGrid. This is specialised for OptRef[A]. The tileGrid can map the SqCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit SqGrid square grid parameter.
Value members
Concrete methods
Coordinate map Nones. Map the None values respective SqCen coordinates of this SqCenArrOpt to type B, the first type parameter. Returns an immutable Array based collection of type ArrT, the second type parameter.
Coordinate map Nones. Map the None values respective SqCen coordinates of this SqCenArrOpt to type B, the first type parameter. Returns an immutable Array based collection of type ArrT, the second type parameter.
Moves the object in the array location given by HCen1 to HCen2, by setting H2 to the value of h1 and setting H1 to null.
Moves the object in the array location given by HCen1 to HCen2, by setting H2 to the value of h1 and setting H1 to null.
coordinate-foreach-Some. Foreach Some element and its associated HCen coordinate applies the side effecting parameter function. It ignores the None values.
coordinate-foreach-Some. Foreach Some element and its associated HCen coordinate applies the side effecting parameter function. It ignores the None values.
Creates a new ArrOpt with the specified location set to NoRef.
Creates a new ArrOpt with the specified location set to NoRef.
Sets the Some value of the square tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Sets the Some value of the square tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Creates a new ArrOpt with the specified location set to the specified value.
Creates a new ArrOpt with the specified location set to the specified value.
Sets the Some values of the hex tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Sets the Some values of the hex tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Maps the Somes of this HCenArrOpt and the Some values of a second HCenArrOpt. Returns an immutable Array based collection of type ArrC, the second type parameter.
Maps the Somes of this HCenArrOpt and the Some values of a second HCenArrOpt. Returns an immutable Array based collection of type ArrC, the second type parameter.
The tile is a None at the given hex grid centre coordinate HCen.
The tile is a None at the given hex grid centre coordinate HCen.
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.
Inherited methods
Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
- Inherited from:
- TileArrOpt
Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
- Inherited from:
- TileArrOpt