Package marauroa.common.net.message
Enum Class Message.MessageType
- All Implemented Interfaces:
Serializable
,Comparable<Message.MessageType>
,Constable
- Enclosing class:
- Message
Type of message
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionclient to server: player actionclient to server: character pickclient to server: requests an account creation without password required (e.g.client to server: requests an account creationclient to server: requests a character creationclient to server: tell the server, that we are still aliveclient to server: request key to start loginclient to server: send nonce, username and encrypted passwordclient to server: sends username, password and a seed (for single sign on)client to server: sends a promise to the server which is used to setup encryption of the passwrdclient to server: sends the username and passwordLogin with tokenclient to server: requests a logoutclient to server: requests a full permissionclient to server: acknowledge transfer of binary data (e.update responseproxy to server: creates an account on behalf of a userproxy to server: creates a character on behalf of a userserver to client: sends the character listserver to client: confirms a successful character choiceserver to client: rejects a character choiceserver to client: rejects a connection attemptserver to client: confirms a successful character creation attemptserver to client: rejects an account cration attemptserver to client: confirms a successful character creation attemptserver to client: rejects a character creation attemptserver to client: rejects the last messageserver to client: confirms a successful loginserver to client: reject a login attemptserver to client: rejects a login attemptserver to client: sends the public keyserver to client: sends a nonce as part of the encryption handshakeserver to client: confirms a logout attemptserver to client: rejects a logout attemptserver to client: updates the client view of the world around itserver to client: submits server and RPClass information to the clientserver to client: transfers content to the clientserver to client: offers content to the clientsend a software update -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.MessageType
Returns the enum constant of this class with the specified name.static Message.MessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
C2S_ACTION
client to server: player action -
C2S_CHOOSECHARACTER
client to server: character pick -
C2S_LOGIN_REQUESTKEY
client to server: request key to start login -
C2S_LOGIN_SENDNONCENAMEANDPASSWORD
client to server: send nonce, username and encrypted password -
C2S_LOGIN_SENDPROMISE
client to server: sends a promise to the server which is used to setup encryption of the passwrd -
C2S_LOGOUT
client to server: requests a logout -
C2S_OUTOFSYNC
client to server: requests a full permission -
C2S_TRANSFER_ACK
client to server: acknowledge transfer of binary data (e. g. map information) -
C2S_KEEPALIVE
client to server: tell the server, that we are still alive -
S2C_CHARACTERLIST
server to client: sends the character list -
S2C_CHOOSECHARACTER_ACK
server to client: confirms a successful character choice -
S2C_CHOOSECHARACTER_NACK
server to client: rejects a character choice -
S2C_INVALIDMESSAGE
server to client: rejects the last message -
S2C_LOGIN_ACK
server to client: confirms a successful login -
S2C_LOGIN_NACK
server to client: rejects a login attempt -
S2C_LOGIN_SENDKEY
server to client: sends the public key -
S2C_LOGIN_SENDNONCE
server to client: sends a nonce as part of the encryption handshake -
S2C_LOGOUT_ACK
server to client: confirms a logout attempt -
S2C_LOGOUT_NACK
server to client: rejects a logout attempt -
S2C_PERCEPTION
server to client: updates the client view of the world around it -
S2C_SERVERINFO
server to client: submits server and RPClass information to the client -
S2C_TRANSFER
server to client: transfers content to the client -
S2C_TRANSFER_REQ
server to client: offers content to the client -
C2S_CREATEACCOUNT
client to server: requests an account creation -
S2C_CREATEACCOUNT_ACK
server to client: confirms a successful character creation attempt -
S2C_CREATEACCOUNT_NACK
server to client: rejects an account cration attempt -
C2S_CREATECHARACTER
client to server: requests a character creation -
S2C_CREATECHARACTER_ACK
server to client: confirms a successful character creation attempt -
S2C_CREATECHARACTER_NACK
server to client: rejects a character creation attempt -
S2C_CONNECT_NACK
server to client: rejects a connection attempt -
C2S_LOGIN_SENDNONCENAMEPASSWORDANDSEED
client to server: sends username, password and a seed (for single sign on) -
S2C_LOGIN_MESSAGE_NACK
server to client: reject a login attempt -
P2S_CREATECHARACTER
proxy to server: creates a character on behalf of a user -
P2S_CREATEACCOUNT
proxy to server: creates an account on behalf of a user -
C2S_LOGIN_SENDUSERNAMEANDPASSWORD
client to server: sends the username and password -
S2C_UPDATE
send a software update -
C2S_UPDATE_RESPONSE
update response -
C2S_LOGIN_WITH_TOKEN
Login with token -
C2S_CREATE_ACCOUNT_WITH_TOKEN
client to server: requests an account creation without password required (e.g. 3rd party auth provider)
-
-
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
-