vitro.util
Enum MazeFactory.Delta

java.lang.Object
  extended by java.lang.Enum<MazeFactory.Delta>
      extended by vitro.util.MazeFactory.Delta
All Implemented Interfaces:
Serializable, Comparable<MazeFactory.Delta>
Enclosing class:
MazeFactory

protected static enum MazeFactory.Delta
extends Enum<MazeFactory.Delta>


Enum Constant Summary
DOWN
           
LEFT
           
RIGHT
           
UP
           
 
Field Summary
 Maze.Direction direction
           
 int dx
           
 int dy
           
 
Method Summary
static MazeFactory.Delta valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MazeFactory.Delta[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UP

public static final MazeFactory.Delta UP

DOWN

public static final MazeFactory.Delta DOWN

LEFT

public static final MazeFactory.Delta LEFT

RIGHT

public static final MazeFactory.Delta RIGHT
Field Detail

dx

public final int dx

dy

public final int dy

direction

public final Maze.Direction direction
Method Detail

values

public static MazeFactory.Delta[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MazeFactory.Delta c : MazeFactory.Delta.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MazeFactory.Delta valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null