|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.jadv.lib.events.JAdvEvent
Main Event, that can be sent between Server and Client!
Constructor Summary | |
JAdvEvent()
|
Method Summary | |
static JAdvEvent |
decodeEvent(java.nio.ByteBuffer buf)
|
abstract java.nio.ByteBuffer |
encodeEvent()
|
static java.nio.ByteBuffer |
encodeEvent(JAdvEvent event)
|
java.util.Date |
getCreateTime()
|
boolean |
isNewer(java.util.Date date)
Checks, if the event is newer than the given time |
boolean |
isOlder(java.util.Date date)
Checks, if the event is older than the given time |
static DataLevelBackground |
readBackground(java.nio.ByteBuffer buf)
|
static java.lang.String |
readString(java.nio.ByteBuffer buf)
|
static void |
write(java.nio.ByteBuffer buf,
DataLevelBackground backgr)
|
static void |
write(java.nio.ByteBuffer buf,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean debug
public static final int EVENT_CODER_VERSION
public static final int BUFFERSIZE
public static final byte CODE_JAdvEvent
public static final byte CODE_AvailableRacesEvent
public static final byte CODE_InNewLevelEvent
public static final byte CODE_IsLoggedInEvent
public static final byte CODE_IsNotLoggedInEvent
public static final byte CODE_ObjectEvent
public static final byte CODE_ObjectOutEvent
public static final byte CODE_QuitEvent
public static final byte CODE_ErrorEvent
public static final byte CODE_NeedLevelEvent
public static final byte CODE_LevelInformationEvent
public static final byte CODE_LibVersionEvent
public static final byte CODE_UnknownEvent
public static final byte CODE_MessageEvent
public static final byte CODE_PlayerIDEvent
public static final byte CODE_SubObjectEvent
public static final byte CODE_ObjectAttributesEvent
public static final byte CODE_ShortPlayerStatsEvent
public static final byte CODE_AllPlayerStatsEvent
public static final byte CODE_GetRacesEvent
public static final byte CODE_LoginEvent
public static final byte CODE_NewPlayerEvent
public static final byte CODE_PlayerMoveEvent
public static final byte CODE_SendMessageEvent
public static final byte CODE_MoveObjectEvent
public static final byte CODE_UseObjectEvent
public static final byte CODE_AttackEvent
public static final byte CODE_RequestShortEvent
public static final byte CODE_RequestLongEvent
public static final byte CODE_FightEvent
transient java.util.Date createTime
Constructor Detail |
public JAdvEvent()
Method Detail |
public java.util.Date getCreateTime()
public boolean isOlder(java.util.Date date)
public boolean isNewer(java.util.Date date)
public static java.nio.ByteBuffer encodeEvent(JAdvEvent event) throws java.io.IOException
java.io.IOException
public static JAdvEvent decodeEvent(java.nio.ByteBuffer buf)
public static void write(java.nio.ByteBuffer buf, java.lang.String text) throws java.io.IOException
java.io.IOException
public static void write(java.nio.ByteBuffer buf, DataLevelBackground backgr) throws java.io.IOException
java.io.IOException
public static java.lang.String readString(java.nio.ByteBuffer buf) throws java.io.IOException
java.io.IOException
public static DataLevelBackground readBackground(java.nio.ByteBuffer buf) throws java.io.IOException
java.io.IOException
public abstract java.nio.ByteBuffer encodeEvent() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |