org.deken.game.movement
Enum PathFindingToTile4Movement.FINDING_DIRECTION
java.lang.Object
java.lang.Enum<PathFindingToTile4Movement.FINDING_DIRECTION>
org.deken.game.movement.PathFindingToTile4Movement.FINDING_DIRECTION
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PathFindingToTile4Movement.FINDING_DIRECTION>
- Enclosing class:
- PathFindingToTile4Movement
public static enum PathFindingToTile4Movement.FINDING_DIRECTION
- extends java.lang.Enum<PathFindingToTile4Movement.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
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 |
FORWARD_FORWARD
public static final PathFindingToTile4Movement.FINDING_DIRECTION FORWARD_FORWARD
FORWARD_BACK
public static final PathFindingToTile4Movement.FINDING_DIRECTION FORWARD_BACK
ANY_BACK
public static final PathFindingToTile4Movement.FINDING_DIRECTION ANY_BACK
ANY_FORWARD
public static final PathFindingToTile4Movement.FINDING_DIRECTION ANY_FORWARD
values
public static PathFindingToTile4Movement.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 (PathFindingToTile4Movement.FINDING_DIRECTION c : PathFindingToTile4Movement.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 PathFindingToTile4Movement.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()
isForwardOnTargetChange
public boolean isForwardOnTargetChange()