/**
 * Represents the four cardinal directions. Each direction has an integer field that can
 * be used as an array index. 
 *
 * @author Drue Coles
 */
public enum Direction {
    
    NORTH(0), EAST(1), SOUTH(2), WEST(3);

    private final int index;
    
    private Direction(int index) {
        this.index = index;
    }

    public int index() {
        return index;
    }
}