|
|||||||||||
| 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.InNewLevelEvent
Tells the client, that the player is now inside a new level
| Field Summary | |
protected int |
_build
|
protected java.lang.String |
_level
|
| Constructor Summary | |
InNewLevelEvent(java.nio.ByteBuffer buf)
Creates a new InNewLevelEvent from data of a given ByteBuffer |
|
InNewLevelEvent(java.lang.String level,
int build)
Creates a new InNewLevelEvent |
|
| Method Summary | |
java.nio.ByteBuffer |
encodeEvent()
Encodes the Event to a ByteBuffer |
int |
getBuild()
returns the build-Number of the level |
java.lang.String |
getLevel()
Gets 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 |
protected java.lang.String _level
protected int _build
| Constructor Detail |
public InNewLevelEvent(java.lang.String level,
int build)
level - - ID of the levelbuild - - build number of the level
public InNewLevelEvent(java.nio.ByteBuffer buf)
throws java.io.IOException
buf - - the ByteBuffer to read the event from
java.io.IOException| Method Detail |
public java.nio.ByteBuffer encodeEvent()
throws java.io.IOException
encodeEvent in class JAdvEventjava.io.IOExceptionpublic java.lang.String getLevel()
public int getBuild()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||