| Package | Description |
|---|---|
| pl.joegreen.sergeants.framework.model | |
| pl.joegreen.sergeants.framework.model.api | |
| pl.joegreen.sergeants.simulator.viewer |
| Modifier and Type | Method and Description |
|---|---|
static Position |
Position.fromIndex(int index,
int columns) |
Position |
Field.getPosition() |
default Position |
GameState.positionFromIndex(int index) |
Position |
Position.withCol(int col) |
Position |
Position.withRow(int row) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<Position,Field> |
GameState.getFieldsMap() |
default Set<Position> |
GameState.getNeighbourPositions(Position position) |
default com.google.common.collect.ImmutableMap<Position,VisibleField> |
GameState.getVisibleFieldsMap() |
| Modifier and Type | Method and Description |
|---|---|
default Set<Position> |
GameState.getNeighbourPositions(Position position) |
boolean |
Position.isMovableFrom(Position otherPosition) |
default boolean |
GameState.isValidPosition(Position position) |
boolean |
Position.isVisibleFrom(Position otherPosition) |
default int |
GameState.positionToIndex(Position position) |
int |
GameStateFieldContext.positionToIndex(Position position) |
| Constructor and Description |
|---|
Field(GameStateFieldContext gameStateContext,
Position position,
FieldTerrainType terrainType) |
VisibleField(GameStateFieldContext gameStateContext,
Position position,
FieldTerrainType terrainType,
Optional<Integer> ownerIndex,
int army,
boolean city,
boolean general) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<Position,Field> |
UpdatableGameState.getFieldsMap() |
com.google.common.collect.ImmutableMap<Position,VisibleField> |
UpdatableGameState.getVisibleFieldsMap() |
| Modifier and Type | Method and Description |
|---|---|
Position |
ViewerField.getPosition() |
| Constructor and Description |
|---|
ViewerField(Position position,
Integer owner,
int army,
boolean city,
boolean general,
boolean mountain) |
Copyright © 2017. All rights reserved.