group1.model.gameobject
Enum GameObjState

java.lang.Object
  extended by java.lang.Enum<GameObjState>
      extended by group1.model.gameobject.GameObjState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GameObjState>

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

GameObjStates is an enum that contains all of the gameObj States


Enum Constant Summary
ATTACKING_BY_CONTACT
           
ATTACKING_BY_FIRE
           
ATTACKING_BY_KATANA
           
ATTACKING_BY_LASER
           
ATTACKING_BY_TOMAHAWK
           
DUCKING
           
DYING
           
FALLING
           
LEFT_PROJECTILE_CREATED
           
LEFT_PROJECTILE_FLYING
           
LEFT_PROJECTILE_HIT
           
RIGHT_PROJECTILE_CREATED
           
RIGHT_PROJECTILE_FLYING
           
RIGHT_PROJECTILE_HIT
           
RISING
           
RUNNING
           
SKIDDING
           
STANDING
           
UNDEFINED
           
WALKING
           
 
Method Summary
static int getNumberOfStates()
           
static GameObjState stringToGameObjState(java.lang.String s)
           
static GameObjState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GameObjState[] 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

UNDEFINED

public static final GameObjState UNDEFINED

STANDING

public static final GameObjState STANDING

WALKING

public static final GameObjState WALKING

RUNNING

public static final GameObjState RUNNING

SKIDDING

public static final GameObjState SKIDDING

RISING

public static final GameObjState RISING

FALLING

public static final GameObjState FALLING

DUCKING

public static final GameObjState DUCKING

ATTACKING_BY_FIRE

public static final GameObjState ATTACKING_BY_FIRE

ATTACKING_BY_KATANA

public static final GameObjState ATTACKING_BY_KATANA

ATTACKING_BY_TOMAHAWK

public static final GameObjState ATTACKING_BY_TOMAHAWK

ATTACKING_BY_LASER

public static final GameObjState ATTACKING_BY_LASER

ATTACKING_BY_CONTACT

public static final GameObjState ATTACKING_BY_CONTACT

DYING

public static final GameObjState DYING

LEFT_PROJECTILE_CREATED

public static final GameObjState LEFT_PROJECTILE_CREATED

LEFT_PROJECTILE_FLYING

public static final GameObjState LEFT_PROJECTILE_FLYING

LEFT_PROJECTILE_HIT

public static final GameObjState LEFT_PROJECTILE_HIT

RIGHT_PROJECTILE_CREATED

public static final GameObjState RIGHT_PROJECTILE_CREATED

RIGHT_PROJECTILE_FLYING

public static final GameObjState RIGHT_PROJECTILE_FLYING

RIGHT_PROJECTILE_HIT

public static final GameObjState RIGHT_PROJECTILE_HIT
Method Detail

values

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

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

valueOf

public static GameObjState 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

getNumberOfStates

public static int getNumberOfStates()

stringToGameObjState

public static GameObjState stringToGameObjState(java.lang.String s)