Package marauroa.common.net.message
Class MessageS2CCreateCharacterACK
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageS2CCreateCharacterACK
- All Implemented Interfaces:
Serializable
This message indicate the client that the server has accepted its create
character Message
- See Also:
Message
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.net.message.Message
Message.MessageType
-
Field Summary
Fields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type
-
Constructor Summary
ConstructorDescriptionConstructor for allowing creation of an empty messageMessageS2CCreateCharacterACK(Channel source, String character, RPObject template)
Constructor with a TCP/IP source/destination of the message and approved character name and avatar configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the character the server finally assigned us.The modifications of the template that the server did.void
Serialize the object from an ObjectInputtoString()
This method returns a String that represent the objectvoid
writeObject(OutputSerializer out)
Serialize the object into an ObjectOutputvoid
writeToJson(StringBuilder out)
Serialize the object to jsonMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, readFromMap, requiresPerception, setChannel, setClientID, setProtocolVersion
-
Constructor Details
-
MessageS2CCreateCharacterACK
public MessageS2CCreateCharacterACK()Constructor for allowing creation of an empty message -
MessageS2CCreateCharacterACK
Constructor with a TCP/IP source/destination of the message and approved character name and avatar configuration.- Parameters:
source
- The TCP/IP address associated to this messagecharacter
- the character nametemplate
- the avatar configuration.
-
-
Method Details
-
getCharacter
Returns the name of the character the server finally assigned us.- Returns:
- the name of the character the server finally assigned us.
-
getTemplate
The modifications of the template that the server did.- Returns:
- The modifications of the template that the server did.
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:Message
Serialize the object into an ObjectOutput- Specified by:
writeObject
in interfaceSerializable
- Overrides:
writeObject
in classMessage
- Parameters:
out
- the output serializer.- Throws:
IOException
- if the serializations fails
-
readObject
Description copied from class:Message
Serialize the object from an ObjectInput- Specified by:
readObject
in interfaceSerializable
- Overrides:
readObject
in classMessage
- Parameters:
in
- the input serializer- Throws:
IOException
- if the serializations fails
-
writeToJson
Description copied from class:Message
Serialize the object to json- Overrides:
writeToJson
in classMessage
- Parameters:
out
- output buffer
-