zombie.iso
Enum IsoDirections

java.lang.Object
  extended by java.lang.Enum<IsoDirections>
      extended by zombie.iso.IsoDirections
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IsoDirections>

public enum IsoDirections
extends java.lang.Enum<IsoDirections>


Enum Constant Summary
E
           
Max
           
N
           
NE
           
NW
           
S
           
SE
           
SW
           
W
           
 
Method Summary
static IsoDirections fromAngle(Vector2 angle)
           
static IsoDirections fromAngleActual(Vector2 angle)
           
static IsoDirections fromIndex(int index)
           
static void generateTables()
           
 int index()
           
static IsoDirections reverse(IsoDirections dir)
           
static IsoDirections RotLeft(IsoDirections dir)
           
static IsoDirections RotRight(IsoDirections dir)
           
 java.lang.String toCompassString()
           
 Vector2 ToVector()
           
static IsoDirections valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IsoDirections[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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()