net.sf.juoserver.protocol
Class ClilocMessage

java.lang.Object
  extended by net.sf.juoserver.protocol.AbstractMessage
      extended by net.sf.juoserver.protocol.ClilocMessage
All Implemented Interfaces:
Serializable, Message

public class ClilocMessage
extends AbstractMessage

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.juoserver.protocol.AbstractMessage
NO_CODE, UTF8
 
Constructor Summary
ClilocMessage(int serialID, int modelID, int clilocId, String displayName, String parameters, MessageType messageType)
           
ClilocMessage(Item item)
           
ClilocMessage(Mobile mobile)
           
 
Method Summary
 ByteBuffer encode()
          Encodes this message into a byte array packet.
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class net.sf.juoserver.protocol.AbstractMessage
getCode, getLength, getName, isCompressed, wrapContents, wrapContents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClilocMessage

public ClilocMessage(Mobile mobile)

ClilocMessage

public ClilocMessage(Item item)

ClilocMessage

public ClilocMessage(int serialID,
                     int modelID,
                     int clilocId,
                     String displayName,
                     String parameters,
                     MessageType messageType)
Method Detail

encode

public ByteBuffer encode()
Description copied from interface: Message
Encodes this message into a byte array packet.

The array is wrapped in a byte buffer in order to let subclasses append their contents.

Specified by:
encode in interface Message
Overrides:
encode in class AbstractMessage
Returns:
the byte array representation (a.k.a. packet) of this message

hashCode

public int hashCode()
Specified by:
hashCode in class AbstractMessage

equals

public boolean equals(Object obj)
Specified by:
equals in class AbstractMessage


Copyright © 2010-2012. All Rights Reserved.