sg.edu.nus.comp.cs3243.pipedream
Class Constants

java.lang.Object
  |
  +--sg.edu.nus.comp.cs3243.pipedream.Constants

public class Constants
extends java.lang.Object

The Constants class holds all of the constants for all of the classes in the pipedream package

$Log: Constants.java,v $ Revision 1.1 2004/01/15 08:48:49 rpnlpir Initial revision

Since:
1.0

Field Summary
static char BOTTOM_LEFT_ELBOW_PIECE
          An elbow joint piece 'z' One of the pieces that can appear on the queue
static char BOTTOM_RIGHT_ELBOW_PIECE
          An elbow joint piece 'c' One of the pieces that can appear on the queue
static char CROSS_PIECE
          A cross piece '+'.
static int DEFAULT_MAX_X
          The default X size of the board, 7.
static int DEFAULT_MAX_Y
          The default Y size of the board, 7.
static int DEFAULT_START_X
          The default X coordinate of the start, 3.
static int DEFAULT_START_Y
          The default Y coordinate of the start, 3.
static char DESTROY_ACTION
          The DESTROY action.
static char EMPTY_PIECE
          An empty piece ' '
static int FILLED
          Indicates that a piece is fully filled with ooze (e.g., cross pieces that are filled both NS and EW)
static int FILLED_EW_ONLY
          The fill status of a cross piece that has been filled only horizontally
static int FILLED_NS_ONLY
          The fill status of a cross piece that has been filled only vertically
static int FLOWING_EAST
          The value of getNextOozeDirection(), indicating that the flow is heading eastwards
static int FLOWING_NORTH
          The value of getNextOozeDirection(), indicating that the flow is heading northwards
static int FLOWING_SOUTH
          The value of getNextOozeDirection(), indicating that the flow is heading southwards
static int FLOWING_WEST
          The value of getNextOozeDirection(), indicating that the flow is heading westwards
static char HORIZONTAL_PIECE
          A horizontal pipe piece '-' One of the pieces that can appear on the queue
static int MAX_NORMAL_PIECE
          The total number of normal pipe pieces that can occur in the queue
static int NOT_FILLED
          Indicates that a piece has not been filled.
static char PLACE_ACTION
          The PLACE action.
static char START_TOP_PIECE
          The start piece '\''
static char TOP_LEFT_ELBOW_PIECE
          An elbow joint piece 'q' One of the pieces that can appear on the queue
static char TOP_RIGHT_ELBOW_PIECE
          An elbow joint piece 'e' One of the pieces that can appear on the queue
static char VERTICAL_PIECE
          A vertical piece '|' One of the pieces that can appear on the queue
static char WAIT_ACTION
          The WAIT action.
 
Constructor Summary
Constants()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_PIECE

public static final char EMPTY_PIECE
An empty piece ' '
See Also:
CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

CROSS_PIECE

public static final char CROSS_PIECE
A cross piece '+'. Crosses can be filled both vertically and horizontally. One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

VERTICAL_PIECE

public static final char VERTICAL_PIECE
A vertical piece '|' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

HORIZONTAL_PIECE

public static final char HORIZONTAL_PIECE
A horizontal pipe piece '-' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

TOP_LEFT_ELBOW_PIECE

public static final char TOP_LEFT_ELBOW_PIECE
An elbow joint piece 'q' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

TOP_RIGHT_ELBOW_PIECE

public static final char TOP_RIGHT_ELBOW_PIECE
An elbow joint piece 'e' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

BOTTOM_LEFT_ELBOW_PIECE

public static final char BOTTOM_LEFT_ELBOW_PIECE
An elbow joint piece 'z' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE, START_TOP_PIECE

BOTTOM_RIGHT_ELBOW_PIECE

public static final char BOTTOM_RIGHT_ELBOW_PIECE
An elbow joint piece 'c' One of the pieces that can appear on the queue
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, START_TOP_PIECE

START_TOP_PIECE

public static final char START_TOP_PIECE
The start piece '\''
See Also:
EMPTY_PIECE, CROSS_PIECE, VERTICAL_PIECE, HORIZONTAL_PIECE, TOP_LEFT_ELBOW_PIECE, TOP_RIGHT_ELBOW_PIECE, BOTTOM_LEFT_ELBOW_PIECE, BOTTOM_RIGHT_ELBOW_PIECE

MAX_NORMAL_PIECE

public static final int MAX_NORMAL_PIECE
The total number of normal pipe pieces that can occur in the queue

NOT_FILLED

public static final int NOT_FILLED
Indicates that a piece has not been filled.
See Also:
FILLED, FILLED_NS_ONLY, FILLED_EW_ONLY

FILLED

public static final int FILLED
Indicates that a piece is fully filled with ooze (e.g., cross pieces that are filled both NS and EW)
See Also:
NOT_FILLED, FILLED_NS_ONLY, FILLED_EW_ONLY

FILLED_NS_ONLY

public static final int FILLED_NS_ONLY
The fill status of a cross piece that has been filled only vertically
See Also:
NOT_FILLED, FILLED, FILLED_EW_ONLY

FILLED_EW_ONLY

public static final int FILLED_EW_ONLY
The fill status of a cross piece that has been filled only horizontally
See Also:
NOT_FILLED, FILLED, FILLED_NS_ONLY

DEFAULT_MAX_X

public static final int DEFAULT_MAX_X
The default X size of the board, 7. Your agent will only be tested with this setting.
See Also:
DEFAULT_MAX_Y

DEFAULT_MAX_Y

public static final int DEFAULT_MAX_Y
The default Y size of the board, 7. Your agent will only be tested with this setting.
See Also:
DEFAULT_MAX_X

DEFAULT_START_X

public static final int DEFAULT_START_X
The default X coordinate of the start, 3. Your agent will only be tested with this setting.
See Also:
DEFAULT_START_Y

DEFAULT_START_Y

public static final int DEFAULT_START_Y
The default Y coordinate of the start, 3. Your agent will only be tested with this setting.
See Also:
DEFAULT_START_X

FLOWING_NORTH

public static final int FLOWING_NORTH
The value of getNextOozeDirection(), indicating that the flow is heading northwards
See Also:
Driver.getNextOozeDirection(), FLOWING_EAST, FLOWING_SOUTH, FLOWING_WEST

FLOWING_EAST

public static final int FLOWING_EAST
The value of getNextOozeDirection(), indicating that the flow is heading eastwards
See Also:
Driver.getNextOozeDirection(), FLOWING_NORTH, FLOWING_SOUTH, FLOWING_WEST

FLOWING_SOUTH

public static final int FLOWING_SOUTH
The value of getNextOozeDirection(), indicating that the flow is heading southwards
See Also:
Driver.getNextOozeDirection(), FLOWING_NORTH, FLOWING_EAST, FLOWING_WEST

FLOWING_WEST

public static final int FLOWING_WEST
The value of getNextOozeDirection(), indicating that the flow is heading westwards
See Also:
Driver.getNextOozeDirection(), FLOWING_NORTH, FLOWING_EAST, FLOWING_SOUTH

DESTROY_ACTION

public static final char DESTROY_ACTION
The DESTROY action. A valid Action should set one of the three constants as its action
See Also:
PLACE_ACTION, WAIT_ACTION

WAIT_ACTION

public static final char WAIT_ACTION
The WAIT action. A valid Action should set one of the three constants as its action
See Also:
DESTROY_ACTION, PLACE_ACTION

PLACE_ACTION

public static final char PLACE_ACTION
The PLACE action. A valid Action should set one of the three constants as its action
See Also:
DESTROY_ACTION, WAIT_ACTION
Constructor Detail

Constants

public Constants()