Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.net
Class MessageS2CChooseCharacterACK  view MessageS2CChooseCharacterACK download MessageS2CChooseCharacterACK.java

java.lang.Object
  extended bymarauroa.net.Message
      extended bymarauroa.net.MessageS2CChooseCharacterACK
All Implemented Interfaces:
Serializable

public class MessageS2CChooseCharacterACK
extends Message

This message indicate the client that the server has accepted its ChooseCharacter Message


Field Summary
private  marauroa.game.RPObject.ID id
           
 
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
 
Constructor Summary
MessageS2CChooseCharacterACK()
          Constructor for allowing creation of an empty message
MessageS2CChooseCharacterACK(java.net.InetSocketAddress source, marauroa.game.RPObject.ID id)
          Constructor with a TCP/IP source/destination of the message
 
Method Summary
 marauroa.game.RPObject.ID getObjectID()
          This method returns the object id of the choosen character
 void readObject(InputSerializer in)
          Serialize the object from an ObjectInput
 java.lang.String toString()
          This method returns a String that represent the object
 void writeObject(OutputSerializer out)
          Serialize the object into an ObjectOutput
 
Methods inherited from class marauroa.net.Message
getAddress, getClientID, getType, setAddress, setClientID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private marauroa.game.RPObject.ID id
Constructor Detail

MessageS2CChooseCharacterACK

public MessageS2CChooseCharacterACK()
Constructor for allowing creation of an empty message


MessageS2CChooseCharacterACK

public MessageS2CChooseCharacterACK(java.net.InetSocketAddress source,
                                    marauroa.game.RPObject.ID id)
Constructor with a TCP/IP source/destination of the message

Method Detail

getObjectID

public marauroa.game.RPObject.ID getObjectID()
This method returns the object id of the choosen 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