SqCenOptLayer
A layer of immutable optional SqCen data for a SqGridSys square grid system, 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 SqGridSys square grid system parameter.
Attributes
- Graph
-
- Supertypes
Members list
Type members
Types
Value members
Concrete methods
Indexes in to this SqCenOptLayer using the tile centre coordinate, either passed as an SqCen or as row and column values.
Indexes in to this SqCenOptLayer using the tile centre coordinate, either passed as an SqCen or as row and column values.
Attributes
Indexes in to this SqCenOptLayer using the tile centre coordinate, either passed as an SqCen or as row and column values.
Indexes in to this SqCenOptLayer using the tile centre coordinate, either passed as an SqCen or as row and column values.
Attributes
Indexes in to this SqCenOptLayer using the tile centre coordinate, returns the raw value which might be a null.
Indexes in to this SqCenOptLayer using the tile centre coordinate, returns the raw value which might be a null.
Attributes
Indexes in to this SqCenOptLayer using the tile centre coordinate, returns the raw value which might be a null.
Indexes in to this SqCenOptLayer using the tile centre coordinate, returns the raw value which might be a null.
Attributes
Maps this SqCenOptLayer to a new SqCenOptLayer of type B. The None values are just mapped to Nones. The SqGridSys that encodes the layer is not required for this operation.
Maps this SqCenOptLayer to a new SqCenOptLayer of type B. The None values are just mapped to Nones. The SqGridSys that encodes the layer is not required for this operation.
Attributes
Moves the object in the array location given by SqCen1 to SqCen2, by setting s2 to the value of s1 and setting s1 to null.
Moves the object in the array location given by SqCen1 to SqCen2, by setting s2 to the value of s1 and setting s1 to null.
Attributes
Coordinate map Nones. Map the None values respective SqCen coordinates of this SqCenOptLayer 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 SqCenOptLayer to type B, the first type parameter. Returns an immutable Array based collection of type ArrT, the second type parameter.
Attributes
Coordinate map Nones. Map the None values respective SqCen coordinates of this SqCenOptLayer 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 SqCenOptLayer to type B, the first type parameter. Returns an immutable Array based collection of type ArrT, the second type parameter.
Attributes
Drops the None values mapping the Some's value with the SqCen to an option value, collecting the values of the Somes returned by the function. Returns a Seqimut of length 0 to the length of this SqCenOptLayer.
Drops the None values mapping the Some's value with the SqCen to an option value, collecting the values of the Somes returned by the function. Returns a Seqimut of length 0 to the length of this SqCenOptLayer.
Attributes
Maps the SqCens with the corresponding Some values to a new SqCenOptLayer of type B. The None values are just mapped to Nones.
Maps the SqCens with the corresponding Some values to a new SqCenOptLayer of type B. The None values are just mapped to Nones.
Attributes
Coordinate map Nones. Map the None values respective SqCen coordinates of this SqCenOptLayer 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 SqCenOptLayer to type B, the first type parameter. Returns an immutable Array based collection of type ArrT, the second type parameter.
Attributes
Creates a new ArrOpt with the specified location set to NoRef.
Creates a new ArrOpt with the specified location set to NoRef.
Attributes
Sets / mutates the value ot the specified location to None.
Sets / mutates the value ot the specified location to None.
Attributes
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.
Attributes
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.
Attributes
Sets / mutates the Some value of the hex tile data at the specified row and column coordinate values.
Sets / mutates the Some value of the hex tile data at the specified row and column coordinate values.
Attributes
Maps the Somes of this SqCenArrOpt and the Some values of a second SqCenOptLayer. Returns an immutable Array based collection of type ArrC, the second type parameter.
Maps the Somes of this SqCenArrOpt and the Some values of a second SqCenOptLayer. Returns an immutable Array based collection of type ArrC, the second type parameter.
Attributes
coordinate-foreach-Some. Foreach Some element and its associated SqCen coordinate applies the side effecting parameter function. It ignores the None values.
coordinate-foreach-Some. Foreach Some element and its associated SqCen coordinate applies the side effecting parameter function. It ignores the None values.
Attributes
Attributes
- Definition Classes
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.
Attributes
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.
Attributes
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.
Attributes
Inherited methods
The length of this tile grid mapped Array of optional values.
Attributes
- Inherited from:
- LayerTcOpt
Attributes
- Inherited from:
- LayerTcOpt
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 LayerTcOpt 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 LayerTcOpt was created.
Attributes
- Inherited from:
- LayerTcOpt
Attributes
- Inherited from:
- LayerTcOpt
Attributes
- Inherited from:
- LayerTcOpt
Returns an ArrBase[A] of type ArrA filtered to the Some values.
Returns an ArrBase[A] of type ArrA filtered to the Some values.
Attributes
- Inherited from:
- LayerTcOpt
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 LayerTcOpt 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 LayerTcOpt was created.
Attributes
- Inherited from:
- LayerTcOpt
Concrete fields
The underlying mutable backing Array. it is designated unsafe because it uses nulls for run time efficiency. End users should rarely need to access this directly.
The underlying mutable backing Array. it is designated unsafe because it uses nulls for run time efficiency. End users should rarely need to access this directly.