AIILE.gridworld.util.hint
Class Direction

java.lang.Object
  extended byAIILE.gridworld.util.hint.Direction
All Implemented Interfaces:
java.io.Serializable

public class Direction
extends java.lang.Object
implements java.io.Serializable

This class holds a few constants for the direction, NORTH, SOUTH, EAST and WEST.

See Also:
Serialized Form

Field Summary
static java.lang.String EAST
           
static java.lang.String NORTH
           
static java.lang.String NOT_SET
           
static java.lang.String SOUTH
           
static java.lang.String WEST
           
 
Constructor Summary
Direction()
          Creates a new instance of Direction
Direction(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
          This will provide the name of the direction.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_SET

public static final java.lang.String NOT_SET
See Also:
Constant Field Values

NORTH

public static final java.lang.String NORTH
See Also:
Constant Field Values

SOUTH

public static final java.lang.String SOUTH
See Also:
Constant Field Values

EAST

public static final java.lang.String EAST
See Also:
Constant Field Values

WEST

public static final java.lang.String WEST
See Also:
Constant Field Values
Constructor Detail

Direction

public Direction()
Creates a new instance of Direction


Direction

public Direction(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
This will provide the name of the direction. See the constants for the directions available.

Returns:
String

toString

public java.lang.String toString()