net.sf.juoserver.protocol
Class LoginConfirm
java.lang.Object
net.sf.juoserver.protocol.AbstractMessage
net.sf.juoserver.protocol.LoginConfirm
- All Implemented Interfaces:
- Serializable, Message
public class LoginConfirm
- extends AbstractMessage
Login confirm message. Sent as a response of a
CharacterSelect
message.
- See Also:
- Serialized Form
Constructor Summary |
LoginConfirm(int charSerial,
short modelID,
short x,
short y,
byte z,
byte direction,
short notoriety,
short mapWidthMinusEight,
short mapHeightMinusEight)
|
LoginConfirm
public LoginConfirm(int charSerial,
short modelID,
short x,
short y,
byte z,
byte direction,
short notoriety,
short mapWidthMinusEight,
short mapHeightMinusEight)
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
getCharSerial
public int getCharSerial()
getModelID
public short getModelID()
getX
public short getX()
getY
public short getY()
getZ
public byte getZ()
getDirection
public byte getDirection()
getNotoriety
public short getNotoriety()
getMapWidthMinusEight
public short getMapWidthMinusEight()
getMapHeightMinusEight
public short getMapHeightMinusEight()
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.