Package com.c1games.terminal.algo.map
Class MapBounds
java.lang.Object
com.c1games.terminal.algo.map.MapBounds
public class MapBounds
extends java.lang.Object
Static constants representing the constant status of different tiles on the map, such as whether it is on an edge, on on the board.
-
Field Summary
Fields Modifier and Type Field Description static boolean[][]
ARENA
The valid area in which all units can go during the entire game.static int
BOARD_SIZE
static int
EDGE_BOTTOM_LEFT
static int
EDGE_BOTTOM_RIGHT
static Coords[][]
EDGE_LISTS
For each direction constant, declared above, an array of all the coordinates which compose that edge.static int
EDGE_TOP_LEFT
static int
EDGE_TOP_RIGHT
static boolean[][][]
IS_ON_EDGE
For each direction constant, declared above, a boolean grid denoting whether this cell is on the corresponding edge. -
Method Summary
Modifier and Type Method Description static int
getEdgeFromStart(Coords start)
static boolean
inArena(Coords coords)
-
Field Details
-
BOARD_SIZE
public static final int BOARD_SIZE- See Also:
- Constant Field Values
-
EDGE_TOP_RIGHT
public static final int EDGE_TOP_RIGHT- See Also:
- Constant Field Values
-
EDGE_TOP_LEFT
public static final int EDGE_TOP_LEFT- See Also:
- Constant Field Values
-
EDGE_BOTTOM_LEFT
public static final int EDGE_BOTTOM_LEFT- See Also:
- Constant Field Values
-
EDGE_BOTTOM_RIGHT
public static final int EDGE_BOTTOM_RIGHT- See Also:
- Constant Field Values
-
IS_ON_EDGE
public static final boolean[][][] IS_ON_EDGEFor each direction constant, declared above, a boolean grid denoting whether this cell is on the corresponding edge. -
EDGE_LISTS
For each direction constant, declared above, an array of all the coordinates which compose that edge. -
ARENA
public static final boolean[][] ARENAThe valid area in which all units can go during the entire game.
-
-
Method Details