public abstract class GridLayoutStrategy extends Object
HexagonalGrid corresponding to a given shape.| Constructor and Description |
|---|
GridLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParameters(int gridHeight,
int gridWidth)
Checks whether the supplied parameters are valid for the given strategy.
|
abstract rx.Observable<AxialCoordinate> |
fetchGridCoordinates(HexagonalGridBuilder builder)
Fetches a monotonically increasing (from left to right, top to bottom) Set of
grid coordinates corresponding to the shape of the requested grid layout.
|
public abstract rx.Observable<AxialCoordinate> fetchGridCoordinates(HexagonalGridBuilder builder)
builder - builderpublic boolean checkParameters(int gridHeight,
int gridWidth)
gridHeight - heightgridWidth - widthCopyright © 2016. All rights reserved.