org.deken.game.movement
Enum GameVector.DIRECTION

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

public static enum GameVector.DIRECTION
extends java.lang.Enum<GameVector.DIRECTION>


Enum Constant Summary
EAST
           
EAST_NORTH_EAST
           
EAST_SOUTH_EAST
           
NORTH
           
NORTH_EAST
           
NORTH_NORTH_EAST
           
NORTH_NORTH_WEST
           
NORTH_WEST
           
NULL
           
SOUTH
           
SOUTH_EAST
           
SOUTH_SOUTH_EAST
           
SOUTH_SOUTH_WEST
           
SOUTH_WEST
           
WEST
           
WEST_NORTH_WEST
           
WEST_SOUTH_WEST
           
 
Method Summary
 float getDegree()
           
 GameVector.DIRECTION nearest4th()
           
 GameVector.DIRECTION nearest8th()
           
static GameVector.DIRECTION valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GameVector.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

NULL

public static final GameVector.DIRECTION NULL

EAST

public static final GameVector.DIRECTION EAST

EAST_SOUTH_EAST

public static final GameVector.DIRECTION EAST_SOUTH_EAST

SOUTH_EAST

public static final GameVector.DIRECTION SOUTH_EAST

SOUTH_SOUTH_EAST

public static final GameVector.DIRECTION SOUTH_SOUTH_EAST

SOUTH

public static final GameVector.DIRECTION SOUTH

SOUTH_SOUTH_WEST

public static final GameVector.DIRECTION SOUTH_SOUTH_WEST

SOUTH_WEST

public static final GameVector.DIRECTION SOUTH_WEST

WEST_SOUTH_WEST

public static final GameVector.DIRECTION WEST_SOUTH_WEST

WEST

public static final GameVector.DIRECTION WEST

WEST_NORTH_WEST

public static final GameVector.DIRECTION WEST_NORTH_WEST

NORTH_WEST

public static final GameVector.DIRECTION NORTH_WEST

NORTH_NORTH_WEST

public static final GameVector.DIRECTION NORTH_NORTH_WEST

NORTH

public static final GameVector.DIRECTION NORTH

NORTH_NORTH_EAST

public static final GameVector.DIRECTION NORTH_NORTH_EAST

NORTH_EAST

public static final GameVector.DIRECTION NORTH_EAST

EAST_NORTH_EAST

public static final GameVector.DIRECTION EAST_NORTH_EAST
Method Detail

values

public static GameVector.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 (GameVector.DIRECTION c : GameVector.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 GameVector.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

getDegree

public float getDegree()

nearest4th

public GameVector.DIRECTION nearest4th()

nearest8th

public GameVector.DIRECTION nearest8th()