zombie.iso
Enum IsoDirections
java.lang.Object
java.lang.Enum<IsoDirections>
zombie.iso.IsoDirections
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IsoDirections>
public enum IsoDirections
- extends java.lang.Enum<IsoDirections>
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
N
public static final IsoDirections N
NW
public static final IsoDirections NW
W
public static final IsoDirections W
SW
public static final IsoDirections SW
S
public static final IsoDirections S
SE
public static final IsoDirections SE
E
public static final IsoDirections E
NE
public static final IsoDirections NE
Max
public static final IsoDirections Max
values
public static IsoDirections[] 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 (IsoDirections c : IsoDirections.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IsoDirections 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
fromIndex
public static IsoDirections fromIndex(int index)
RotLeft
public static IsoDirections RotLeft(IsoDirections dir)
RotRight
public static IsoDirections RotRight(IsoDirections dir)
generateTables
public static void generateTables()
fromAngleActual
public static IsoDirections fromAngleActual(Vector2 angle)
index
public int index()
fromAngle
public static IsoDirections fromAngle(Vector2 angle)
reverse
public static IsoDirections reverse(IsoDirections dir)
toCompassString
public java.lang.String toCompassString()
ToVector
public Vector2 ToVector()