|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclient.framework.network.parser.Action
public class Action
A class that represents the framework's default actions. Each action
consist of a three-letter string representation. These actions correspond
to the Action
enum in the server framework.
Field Summary | |
---|---|
static Action |
ALIVE_REQUEST
|
static Action |
DISCONNECT
|
static Action |
GAME_OVER
|
protected java.lang.String |
name
|
static Action |
PLAYER
|
static Action |
POSITION
|
static Action |
READY
|
static Action |
SCORE
|
static Action |
SESSION_LIST
|
static Action |
SESSION_SELECTED
|
static Action |
SETTING_CHANGED
|
static Action |
SETTINGS_LIST
|
static Action |
START
|
static Action |
TEAM
|
Constructor Summary | |
---|---|
protected |
Action(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.String action)
Checks whether an action string is equal to this action's name. |
java.lang.String |
getName()
Returns the action's name. |
java.lang.String |
toString()
Returns the action's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Action PLAYER
public static final Action ALIVE_REQUEST
public static final Action SESSION_LIST
public static final Action SESSION_SELECTED
public static final Action SETTINGS_LIST
public static final Action SETTING_CHANGED
public static final Action READY
public static final Action START
public static final Action POSITION
public static final Action SCORE
public static final Action DISCONNECT
public static final Action GAME_OVER
public static final Action TEAM
protected java.lang.String name
Constructor Detail |
---|
protected Action(java.lang.String name)
name
- The name of the action.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public boolean equals(java.lang.String action)
action
- The string to compare to the action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |