net.sf.juoserver.api
Interface Message

All Known Implementing Classes:
AbstractMessage, CharacterDraw, CharacterList, CharacterSelect, CharacterWarmode, ClientFeatures, ClientVersion, ClilocMessage, DeleteItem, DoubleClick, DragItem, DrawContainer, DrawGamePlayer, DropItem, GeneralInformation, GetPlayerStatus, LoginComplete, LoginConfirm, LoginReject, LoginRequest, LoginSeed, LookRequest, MegaClilocRequest, MegaClilocResponse, MovementAck, MovementReject, MoveRequest, ObjectInfo, ObjectRevision, OverallLightLevel, Paperdoll, PersonalLightLevel, PickUpItem, PingPong, SeasonalInformation, SelectServer, ServerConnect, ServerList, ServerLoginRequest, SkillLock, SkillUpdate, SpyOnClient, StatusBarInfo, UnicodeSpeech, UnicodeSpeechRequest, UpdatePlayer, WearItem

public interface Message

Public contract of a message.


Method Summary
 ByteBuffer encode()
          Encodes this message into a byte array packet.
 int getCode()
           
 int getLength()
           
 boolean isCompressed()
           
 

Method Detail

getCode

int getCode()
Returns:
this message's code

getLength

int getLength()
Returns:
this message's length in bytes

encode

ByteBuffer encode()
Encodes this message into a byte array packet.

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

Returns:
the byte array representation (a.k.a. packet) of this message

isCompressed

boolean isCompressed()
Returns:
true if and only if this message should be compressed when sent by the server


Copyright © 2010-2012. All Rights Reserved.