Enum Class MessageType
- All Implemented Interfaces:
Serializable
,Comparable<MessageType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeneral communication, the default.The idea here is that this indicates that this text should be displayed above the characters head that says it in a speech bubble in the graphical client.State changes of the game, for example if somebody logs on.The internal ping-pong for checking of the connection.The internal ping-pong for checking of the connection.User generated ping response. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageType
Returns the enum constant of this class with the specified name.static MessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO
State changes of the game, for example if somebody logs on. -
PONG
User generated ping response. For fun. -
INTERNALPING
The internal ping-pong for checking of the connection. We're expecting aINTERNALPONG
, if we sent this message. This enumtype will never be generated/used by the server, but will only be sent by the client. -
INTERNALPONG
The internal ping-pong for checking of the connection. This enumtype will never be sent by the client, but only by the server as an answer to aINTERNALPING
. -
CHAT
General communication, the default. -
CHATBUBBLE
The idea here is that this indicates that this text should be displayed above the characters head that says it in a speech bubble in the graphical client.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-