|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.jadv.lib.events.JAdvEvent
|
+--de.jadv.lib.events.toclient.NeedLevelEvent
This Event can have different meanings:
1) The server can send it to the client, when the client should load
another Level now (and not when the player entering it!)
2) The client sends it to the server to request the Level
| Field Summary | |
(package private) int |
_build
|
(package private) java.lang.String |
_LevelID
|
| Constructor Summary | |
NeedLevelEvent(java.nio.ByteBuffer buf)
Constructor, that reads this Event from the ByteBuffer |
|
NeedLevelEvent(java.lang.String LevelID,
int build)
Constructor for NeedLevel. |
|
| Method Summary | |
java.nio.ByteBuffer |
encodeEvent()
Encodes this event to a ByteBuffer |
int |
getBuild()
Get the Build of the Level |
java.lang.String |
getLevelID()
Get the ID of the Level |
| Methods inherited from class de.jadv.lib.events.JAdvEvent |
decodeEvent, encodeEvent, getCreateTime, isNewer, isOlder, readBackground, readString, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String _LevelID
int _build
| Constructor Detail |
public NeedLevelEvent(java.lang.String LevelID,
int build)
public NeedLevelEvent(java.nio.ByteBuffer buf)
throws java.io.IOException
buf - - the ByteBuffer to read this Event from
java.io.IOException - - Exception, if the event cannot be read| Method Detail |
public java.nio.ByteBuffer encodeEvent()
throws java.io.IOException
encodeEvent in class JAdvEventjava.io.IOExceptionpublic java.lang.String getLevelID()
public int getBuild()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||