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
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.
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
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
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
Maps the Somes of this HCenArrOpt 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 HCenArrOpt 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
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.
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:
- TCenOptLayer
Attributes
- Inherited from:
- TCenOptLayer
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 TCenOptLayer 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 TCenOptLayer was created.
Attributes
- Inherited from:
- TCenOptLayer
Attributes
- Inherited from:
- TCenOptLayer
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 TCenOptLayer 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 TCenOptLayer was created.
Attributes
- Inherited from:
- TCenOptLayer
Attributes
- Inherited from:
- TCenOptLayer
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:
- TCenOptLayer
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.