tron
Class TronConstants

java.lang.Object
  extended by tron.TronConstants

public class TronConstants
extends java.lang.Object

Some useful constants for the Tron game. April 2010

Author:
Ben Bederson

Field Summary
static int CELL_EMPTY
          Value of a cell when it is empty.
static int STATE_EMPTY
          Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is empty.
static int STATE_HEAD
          Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is the head of a trace.
static int STATE_OBSTACLE
          Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is an obstacle.
 
Constructor Summary
TronConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELL_EMPTY

public static final int CELL_EMPTY
Value of a cell when it is empty. This is used by the int[][] board array to represent that a cell has not been played.

See Also:
Constant Field Values

STATE_EMPTY

public static final int STATE_EMPTY
Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is empty.

See Also:
Constant Field Values

STATE_HEAD

public static final int STATE_HEAD
Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is the head of a trace.

See Also:
Constant Field Values

STATE_OBSTACLE

public static final int STATE_OBSTACLE
Required value of an element of the string generated by TronStateUtil.toString() to indicate that a cell is an obstacle.

See Also:
Constant Field Values
Constructor Detail

TronConstants

public TronConstants()


Web Accessibility