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
           
DUCKING_LEFT
           
DUCKING_RIGHT
           
DYING
           
FALLING
           
JUMPING
           
JUMPING_LEFT
           
JUMPING_RIGHT
           
LEFT_PROJECTILE_CREATED
           
LEFT_PROJECTILE_FLYING
           
LEFT_PROJECTILE_HIT
           
RIGHT_PROJECTILE_CREATED
           
RIGHT_PROJECTILE_FLYING
           
RIGHT_PROJECTILE_HIT
           
RISING
           
RUNNING
           
RUNNING_LEFT
           
RUNNING_RIGHT
           
SKIDDING
           
SKIDDING_LEFT
           
SKIDDING_RIGHT
           
STANDING
           
STANDING_LEFT
           
STANDING_RIGHT
           
UNDEFINED
           
WALKING
           
 
Method Summary
 boolean equals(GameObjState s)
           
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

JUMPING

public static final GameObjState JUMPING

JUMPING_LEFT

public static final GameObjState JUMPING_LEFT

JUMPING_RIGHT

public static final GameObjState JUMPING_RIGHT

RUNNING_LEFT

public static final GameObjState RUNNING_LEFT

RUNNING_RIGHT

public static final GameObjState RUNNING_RIGHT

DUCKING_LEFT

public static final GameObjState DUCKING_LEFT

DUCKING_RIGHT

public static final GameObjState DUCKING_RIGHT

STANDING_LEFT

public static final GameObjState STANDING_LEFT

STANDING_RIGHT

public static final GameObjState STANDING_RIGHT

SKIDDING_LEFT

public static final GameObjState SKIDDING_LEFT

SKIDDING_RIGHT

public static final GameObjState SKIDDING_RIGHT
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)

equals

public boolean equals(GameObjState s)