public final class TrapezoidGridLayoutStrategy extends Object implements GridLayoutStrategy
| Constructor and Description |
|---|
TrapezoidGridLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParameters(int gridHeight,
int gridWidth)
Checks whether the supplied parameters are valid for the given strategy.
|
Set<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 Set<AxialCoordinate> fetchGridCoordinates(HexagonalGridBuilder builder)
GridLayoutStrategyfetchGridCoordinates in interface GridLayoutStrategypublic boolean checkParameters(int gridHeight,
int gridWidth)
GridLayoutStrategycheckParameters in interface GridLayoutStrategyCopyright © 2016. All rights reserved.