Package marauroa.server.game.container
Enum Class ClientState
- All Implemented Interfaces:
Serializable
,Comparable<ClientState>
,Constable
This enum describe one of the possible state of the client.
When the client starts it has no state, once it connects to server it is
assigned CONNECTION_ACCEPTED state until it logins successfully so it is moved
to LOGIN_COMPLETE.
As soon as it chooses a character it is moved to GAME_BEGIN state which it
will only leave when logout is accepted, LOGOUT_ACCEPTED.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConnection is accepted but login stage is not completed.Client is already playing.Login identification is completed but still choosing character-The client has requested logout and the petition is accepted -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientState
Returns the enum constant of this class with the specified name.static ClientState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTION_ACCEPTED
Connection is accepted but login stage is not completed. -
LOGIN_COMPLETE
Login identification is completed but still choosing character- -
GAME_BEGIN
Client is already playing. -
LOGOUT_ACCEPTED
The client has requested logout and the petition is accepted
-
-
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
-