|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Protocol.Message>
Glomus.Client.Java.Protocol.Message
public static enum Protocol.Message
Enumeration of message types. Maps name to message string and the number of arguments this message expects. Note that "numArgs" returns the number of arguments + 1 for the message name itself.
| Enum Constant Summary | |
|---|---|
ACCUSE
Message from client with a game-ending accusation |
|
ANSWER
Message to client giving away the answer after the game is finished |
|
CANT_REFUTE
Message to clients broadcasting that a player could not refute a suggestion |
|
CLAIM
Message to clients broadcasting a suggestion |
|
CREATE
Message from client asking for a new game to be created |
|
ERROR
Message to client indicating error occurred |
|
GIVE_ANSWER
Message to client asking which pieces of the answer they know |
|
INIT
Message to client with game parameters (variable number of parameters) |
|
JOIN
Message from client asking to join existing game |
|
KNOW
Message from client telling server which pieces of the answer are known, and to clients from the server as a broadcast of that same information |
|
MAKE_ACCUSATION
Message to client requesting accusation |
|
MAKE_CLAIM
Message to client asking for their next suggestion |
|
MESSAGE
Message to client with user-specific information to be logged/displayed |
|
REFUTE
Message to client asking them to refute a suggestion |
|
REFUTED
Message to clients broadcasting that a player refuted a suggestion |
|
SHOW
Message from client refuting a suggestion |
|
SHOWS
Message to client telling who refuted their suggestion with what |
|
| Method Summary | |
|---|---|
int |
numArgs()
|
static Protocol.Message |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Protocol.Message[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Protocol.Message ERROR
public static final Protocol.Message MESSAGE
public static final Protocol.Message ACCUSE
public static final Protocol.Message MAKE_ACCUSATION
public static final Protocol.Message CLAIM
public static final Protocol.Message MAKE_CLAIM
public static final Protocol.Message CANT_REFUTE
public static final Protocol.Message REFUTED
public static final Protocol.Message REFUTE
public static final Protocol.Message SHOW
public static final Protocol.Message SHOWS
public static final Protocol.Message CREATE
public static final Protocol.Message JOIN
public static final Protocol.Message INIT
public static final Protocol.Message GIVE_ANSWER
public static final Protocol.Message KNOW
public static final Protocol.Message ANSWER
| Method Detail |
|---|
public static final Protocol.Message[] values()
for(Protocol.Message c : Protocol.Message.values())
System.out.println(c);
public static Protocol.Message 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 namepublic int numArgs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||