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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait