net.sf.juoserver.protocol
Class UpdatePlayer

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

public class UpdatePlayer
extends AbstractMessage

Updates a player about a mobile's new position.

See Also:
Serialized Form

Field Summary
protected static int CODE
           
 
Fields inherited from class net.sf.juoserver.protocol.AbstractMessage
NO_CODE, UTF8
 
Constructor Summary
UpdatePlayer(Mobile mobile)
           
 
Method Summary
 ByteBuffer encode()
          Encodes this message into a byte array packet.
 boolean equals(Object obj)
           
 int getBodyType()
           
 byte getDirectionWithRunningInfo()
           
 int getHue()
           
 int getNotorietyCode()
           
 int getPlayerSerial()
           
 int getStatusCode()
           
 int getX()
           
 int getY()
           
 int getZ()
           
 int hashCode()
           
 String toString()
           
 
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, wait, wait, wait
 

Field Detail

CODE

protected static final int CODE
See Also:
Constant Field Values
Constructor Detail

UpdatePlayer

public UpdatePlayer(Mobile mobile)
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

getPlayerSerial

public int getPlayerSerial()

getBodyType

public int getBodyType()

getX

public int getX()

getY

public int getY()

getZ

public int getZ()

getDirectionWithRunningInfo

public byte getDirectionWithRunningInfo()

getHue

public int getHue()

getStatusCode

public int getStatusCode()

getNotorietyCode

public int getNotorietyCode()

hashCode

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

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.