marauroa.net
Class MessageC2SChooseCharacter

java.lang.Object
marauroa.net.Message
marauroa.net.MessageC2SChooseCharacter
- All Implemented Interfaces:
- Serializable
- public class MessageC2SChooseCharacter
- extends Message
This message indicate the server what of the available characters is chosen
for the session to play.
| Fields inherited from class marauroa.net.Message |
clientid, CLIENTID_INVALID, source, type, TYPE_C2S_ACTION, TYPE_C2S_CHOOSECHARACTER, TYPE_C2S_LOGIN, TYPE_C2S_LOGOUT, TYPE_C2S_PERCEPTION_ACK, TYPE_INVALID, TYPE_S2C_ACTION_ACK, TYPE_S2C_CHARACTERLIST, TYPE_S2C_CHOOSECHARACTER_ACK, TYPE_S2C_CHOOSECHARACTER_NACK, TYPE_S2C_LOGIN_ACK, TYPE_S2C_LOGIN_NACK, TYPE_S2C_LOGOUT_ACK, TYPE_S2C_LOGOUT_NACK, TYPE_S2C_PERCEPTION, TYPE_S2C_SERVERINFO |
character
private java.lang.String character
MessageC2SChooseCharacter
public MessageC2SChooseCharacter()
- Constructor for allowing creation of an empty message
MessageC2SChooseCharacter
public MessageC2SChooseCharacter(java.net.InetSocketAddress source,
java.lang.String character)
- Constructor with a TCP/IP source/destination of the message and the name
of the choosen character.
getCharacter
public java.lang.String getCharacter()
- This methods returns the name of the chosen character
toString
public java.lang.String toString()
- This method returns a String that represent the object
writeObject
public void writeObject(OutputSerializer out)
throws java.io.IOException
- Description copied from class:
Message
- Serialize the object into an ObjectOutput
- Specified by:
writeObject in interface Serializable- Overrides:
writeObject in class Message
readObject
public void readObject(InputSerializer in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from class:
Message
- Serialize the object from an ObjectInput
- Specified by:
readObject in interface Serializable- Overrides:
readObject in class Message