public abstract class GridLayoutStrategy extends Object
HexagonalGrid corresponding to a given shape.| Constructor and Description |
|---|
GridLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkCommonCase(int gridHeight,
int gridWidth) |
abstract boolean |
checkParameters(int gridHeight,
int gridWidth)
Checks whether the supplied parameters are valid for the given strategy.
|
abstract 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.
|
public abstract rx.Observable<CubeCoordinate> fetchGridCoordinates(HexagonalGridBuilder builder)
builder - builderpublic abstract boolean checkParameters(int gridHeight,
int gridWidth)
gridHeight - heightgridWidth - widthprotected final boolean checkCommonCase(int gridHeight,
int gridWidth)
Copyright © 2016. All rights reserved.