Package marauroa.common.net.message
Class MessageC2SAction
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageC2SAction
- All Implemented Interfaces:
Serializable
This message indicate the server the action the player's avatar wants to perform.
- 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
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty messageMessageC2SAction(Channel source, RPAction action)Constructor with a TCP/IP source/destination of the message and action to send to serve. -
Method Summary
Modifier and TypeMethodDescriptionbyteThis method returns the priorityThis method returns the actionvoidreadFromMap(Map<String,Object> in)reads a message from a mapvoidSerialize the object from an ObjectInputtoString()This method returns a String that represent the objectvoidwriteObject(OutputSerializer out)Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageC2SAction
public MessageC2SAction()Constructor for allowing creation of an empty message -
MessageC2SAction
Constructor with a TCP/IP source/destination of the message and action to send to serve.- Parameters:
source- The TCP/IP address associated to this messageaction- the action that we sent to server.
-
-
Method Details
-
getRPAction
This method returns the action- Returns:
- the action
-
getPriority
public byte getPriority()This method returns the priority- Returns:
- priority
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:MessageSerialize the object into an ObjectOutput- Specified by:
writeObjectin interfaceSerializable- Overrides:
writeObjectin classMessage- Parameters:
out- the output serializer.- Throws:
IOException- if the serializations fails
-
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessage- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-
readFromMap
Description copied from class:Messagereads a message from a map- Overrides:
readFromMapin classMessage- Parameters:
in- Map to read from- Throws:
IOException- if the serializations fails
-