org.deken.game.movement
Enum WanderToTile4Movement.FINDING_DIRECTION

java.lang.Object
  extended by java.lang.Enum<WanderToTile4Movement.FINDING_DIRECTION>
      extended by org.deken.game.movement.WanderToTile4Movement.FINDING_DIRECTION
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WanderToTile4Movement.FINDING_DIRECTION>
Enclosing class:
WanderToTile4Movement

public static enum WanderToTile4Movement.FINDING_DIRECTION
extends java.lang.Enum<WanderToTile4Movement.FINDING_DIRECTION>

FORWARD_FORWARD = path is always forward FORWARD_BACK = path is forward, but on New Target change go back ANY_BACK = path is first find path, but on New Target change go back ANY_FORWARD = path is first find path, but on New Target change go forward


Enum Constant Summary
ANY
           
FORWARD
           
 
Method Summary
 boolean isForwardOnPath()
           
static WanderToTile4Movement.FINDING_DIRECTION valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WanderToTile4Movement.FINDING_DIRECTION[] 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

FORWARD

public static final WanderToTile4Movement.FINDING_DIRECTION FORWARD

ANY

public static final WanderToTile4Movement.FINDING_DIRECTION ANY
Method Detail

values

public static WanderToTile4Movement.FINDING_DIRECTION[] 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 (WanderToTile4Movement.FINDING_DIRECTION c : WanderToTile4Movement.FINDING_DIRECTION.values())
    System.out.println(c);

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

valueOf

public static WanderToTile4Movement.FINDING_DIRECTION valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isForwardOnPath

public boolean isForwardOnPath()