|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Message.MessageType>
pictionary.message.Message.MessageType
public static enum Message.MessageType
Used in Message
to determine the type of message.
Enum Constant Summary | |
---|---|
AClientConnectedToServer
Sent to a client to inform it that a client connected to the server. |
|
AClientCorrectGuess
Sent to clients to inform them that someone made a correct guess. |
|
AClientDisconnected
Sent to a client to inform it that a client disconnected. |
|
AClientIncorrectGuess
Sent to clients to inform them that someone made a faulty guess. |
|
AClientJoinedGame
Send to a client to inform it that a new player joined the game. |
|
AClientStartedDrawing
Sent to a client to inform it that a client started drawing. |
|
AClientStoppedDrawing
The specified client stopped drawing. |
|
ClientMessageBroadcast
A message broadcast from the specified client. |
|
ClientUsernameResponse
Sent as a response to ServerRequestUsername . |
|
CorrectGuess
Informs a client that he made a correct guess. |
|
DisconnectRequest
Sent from a client when it wants to disconnect from the server. |
|
DrawData
This message contains draw data. |
|
Guess
Sent from a client when it makes a guess. |
|
JoinGameMessage
Sent to the client when it joins a new game. |
|
JoinGameRequest
Sent from a client to tell the server that it wants to join a game of Pictionary. |
|
ServerAcceptedConnection
Informs the client that the server has accepted the connection. |
|
ServerDisconnecting
Indicates that the server is closing. |
|
ServerMessage
A message from the server. |
|
ServerRequestUsername
Informs the client that is should send a message containing an username. |
|
StartDrawing
Tells a client to start drawing. |
|
StartGuessing
Tells a client it can start guessing. |
|
StopDrawing
Tells a client to stop drawing. |
|
StopGuessing
Tells a client to stop guessing. |
Method Summary | |
---|---|
static Message.MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Message.MessageType[] |
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 Message.MessageType ServerDisconnecting
public static final Message.MessageType ServerMessage
public static final Message.MessageType ClientMessageBroadcast
public static final Message.MessageType StartGuessing
public static final Message.MessageType AClientStoppedDrawing
public static final Message.MessageType StartDrawing
public static final Message.MessageType StopDrawing
public static final Message.MessageType StopGuessing
public static final Message.MessageType CorrectGuess
public static final Message.MessageType JoinGameRequest
public static final Message.MessageType ServerRequestUsername
public static final Message.MessageType ServerAcceptedConnection
public static final Message.MessageType ClientUsernameResponse
ServerRequestUsername
.
public static final Message.MessageType AClientCorrectGuess
public static final Message.MessageType AClientIncorrectGuess
public static final Message.MessageType DrawData
public static final Message.MessageType DisconnectRequest
public static final Message.MessageType AClientDisconnected
public static final Message.MessageType AClientStartedDrawing
public static final Message.MessageType AClientConnectedToServer
public static final Message.MessageType AClientJoinedGame
public static final Message.MessageType JoinGameMessage
public static final Message.MessageType Guess
Method Detail |
---|
public static Message.MessageType[] values()
for (Message.MessageType c : Message.MessageType.values()) System.out.println(c);
public static Message.MessageType 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |