public final class TriangularGridLayoutStrategy extends GridLayoutStrategy
HexagonalGrid which has a triangular
shape.| Constructor and Description |
|---|
TriangularGridLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParameters(int gridHeight,
int gridWidth)
Checks whether the supplied parameters are valid for the given strategy.
|
rx.Observable<CubeCoordinate> |
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.
|
checkCommonCasepublic rx.Observable<CubeCoordinate> fetchGridCoordinates(HexagonalGridBuilder builder)
GridLayoutStrategyfetchGridCoordinates in class GridLayoutStrategybuilder - builderpublic boolean checkParameters(int gridHeight,
int gridWidth)
GridLayoutStrategycheckParameters in class GridLayoutStrategygridHeight - heightgridWidth - widthCopyright © 2016. All rights reserved.