Reference data layer for HGridSys. An HGridSys hex tile grid system of HCen or hex tile data. For efficiency the data is stored as a flat Array. No run time information distinguishes this from an ordinary linear sequence array of data. Whether in a game or a non game application the data of the grid tiles is likely to change much more frequently than the size, shape, structure of the grid. The compiler knows this is hex grid array and hence the data should be set and retrieved through the HGrid hex grid. So nearly all the methods take the HGrid as an implicit parameter.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class LayerHcRefGrid[A]class LayerHcRefMulti[A]
Members list
Value members
Abstract methods
Spawns a new LayerHcRefSys data layer from this LayerHcRefSys's HGridSys to the child HGridSys. There is a name overload for this method that passes the child HGridSys implicitly.
Spawns a new LayerHcRefSys data layer from this LayerHcRefSys's HGridSys to the child HGridSys. There is a name overload for this method that passes the child HGridSys implicitly.
Attributes
Concrete methods
FlatMaps the links / inner sides to an immutable Array, using the data of this HCenArr. It takes a function, that takes the HSep and the two adjacent hex tile data values.
FlatMaps the links / inner sides to an immutable Array, using the data of this HCenArr. It takes a function, that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the links or inner sides to an immutable Array, using the data of this HCenArr. It takes a function for the links or inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the links or inner sides to an immutable Array, using the data of this HCenArr. It takes a function for the links or inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the visible HCens in the projection with their respective projection Pt2 tile centre points and the data layer element form this collection to GraphicElems. This method name overload takes the HSysProjection as an implicit parameter. The other name overload takes it as an explicit first parameter list. In practice this method may be of limited utility. It may be better to use the the HSysProjection or another class as the dispatching object and access these data layer elements by the HCen apply methods.
Maps the visible HCens in the projection with their respective projection Pt2 tile centre points and the data layer element form this collection to GraphicElems. This method name overload takes the HSysProjection as an implicit parameter. The other name overload takes it as an explicit first parameter list. In practice this method may be of limited utility. It may be better to use the the HSysProjection or another class as the dispatching object and access these data layer elements by the HCen apply methods.
Attributes
Maps the visible HCens in the projection with their respective projection Pt2 tile centre points and the data layer element form this collection to GraphicElems. This method name overload takes the HSysProjection as an explicit first parameter list. The other name overload takes it as an implicit parameter.In practice this method may be of limited utility. It may be better to use the the HSysProjection or another class as the dispatching object and access these data layer elements by the HCen apply methods.
Maps the visible HCens in the projection with their respective projection Pt2 tile centre points and the data layer element form this collection to GraphicElems. This method name overload takes the HSysProjection as an explicit first parameter list. The other name overload takes it as an implicit parameter.In practice this method may be of limited utility. It may be better to use the the HSysProjection or another class as the dispatching object and access these data layer elements by the HCen apply methods.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Comment no correct, Maps the sides to an immutable Array, using the data of this LayerHcRefSys. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Comment no correct, Maps the sides to an immutable Array, using the data of this LayerHcRefSys. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
implementation not correct, Comment not correct, Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
implementation not correct, Comment not correct, Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the sides to an immutable Array, using the data of this LayerHcRefSys. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this LayerHcRefSys. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Completes the given row from the given starting c column value to the end of the row. An exception is thrown if the tile values don't match with the end of the row.
Completes the given row from the given starting c column value to the end of the row. An exception is thrown if the tile values don't match with the end of the row.
Attributes
Sets the given row from the given starting c column value, for the given number of tile centre values. An exception is thrown if the numOfCens overflows the row end.
Sets the given row from the given starting c column value, for the given number of tile centre values. An exception is thrown if the numOfCens overflows the row end.
Attributes
Fills in the whole given row, with the same given value. This method has anme overload where the grid is passed explicitly as the first parameter.
Fills in the whole given row, with the same given value. This method has anme overload where the grid is passed explicitly as the first parameter.
Attributes
Fills in the whole given row, with the same given value. This method has anme overload where the grid is passed implicitly.
Fills in the whole given row, with the same given value. This method has anme overload where the grid is passed implicitly.
Attributes
Sets the given row from the start of the row, for the given number of tile centre values. An exception is thrown if the numOfCens overflows the row end.
Sets the given row from the start of the row, for the given number of tile centre values. An exception is thrown if the numOfCens overflows the row end.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Maps the sides to an immutable Array, using the data of this HCenArr. It takes two functions, one for the edges of the grid, that takes the HSep and the single adjacent hex tile data value and one for the inner sides of the grid that takes the HSep and the two adjacent hex tile data values.
Attributes
Spawns a new LayerHcRefSys data layer from this LayerHcRefSys's HGridSys to the child HGridSys, passed as implicit parameter. There is a name overload for this method that passes the child HGridSys explicitly.
Spawns a new LayerHcRefSys data layer from this LayerHcRefSys's HGridSys to the child HGridSys, passed as implicit parameter. There is a name overload for this method that passes the child HGridSys explicitly.
Attributes
Inherited methods
Apply method returns a data element from this data layer for the given HCen.
Apply method returns a data element from this data layer for the given HCen.
Attributes
- Inherited from:
- LayerHcRef
Apply method returns a data element from this data layer for the given HCen. The appropriate index is found from the implicit HGridSys. There is an alternative nme overload where the HGridSys is passed explicitly as the first parameter.
Apply method returns a data element from this data layer for the given HCen. The appropriate index is found from the implicit HGridSys. There is an alternative nme overload where the HGridSys is passed explicitly as the first parameter.
Attributes
- Inherited from:
- LayerHcRef
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
Attributes
- Inherited from:
- LayerTcRef
For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.
For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.
Attributes
- Inherited from:
- LayerTcRef
HCen with flatmap. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
HCen with flatmap. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- LayerHcRef
HCen with foreach. Applies the side effecting function to the HCen coordinate with its respective element. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
HCen with foreach. Applies the side effecting function to the HCen coordinate with its respective element. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- LayerHcRef
HCen with map. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
HCen with map. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- LayerHcRef
HCen with optFlatmap. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
HCen with optFlatmap. Applies the function to each HCen coordinate with the corresponding element in the underlying array. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- LayerHcRef
Maps each data element with thw corresponding HCen to an Option of type B. Collects the Some's values. The length of the returned Arr will be between 0 and the length of this LayerHcRefSys.
Maps each data element with thw corresponding HCen to an Option of type B. Collects the Some's values. The length of the returned Arr will be between 0 and the length of this LayerHcRefSys.
Attributes
- Inherited from:
- LayerHcRef
The number of tile centres this array of data represents.
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.
Attributes
- Inherited from:
- LayerTcRef
Set all tiles to the given value.
Attributes
- Inherited from:
- LayerHcRef
Attributes
- Inherited from:
- LayerHcRef
Attributes
- Inherited from:
- LayerHcRef
Attributes
- Inherited from:
- LayerHcRef
Attributes
- Inherited from:
- LayerHcRef