|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Action>
server.framework.network.parser.Action
public enum Action
This enum contains the actions specified for both the framework and for games implementing the framework. New need to be added to this enum. Each enum contain a three-letter description corresponding to the action's specification.
Method Summary | |
---|---|
static Action |
getActionObject(java.lang.String name)
Returns the enum corresponding to the specified three-letter identifier. |
java.lang.String |
getName()
|
static Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Action[] |
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 |
---|
public static final Action player
public static final Action alive_request
public static final Action position
public static final Action ready
public static final Action start
public static final Action disconnect
public static final Action score
public static final Action setting_changed
public static final Action session_selected
public static final Action game_over
public static final Action setting_list
public static final Action session_list
public static final Action team
public static final Action empty_message
public static final Action trap_added
public static final Action powerup_added
public static final Action powerup_removed
public static final Action powerup_inactive
public static final Action force
Method Detail |
---|
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public static Action getActionObject(java.lang.String name)
name
- The action identifier.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |