atavism.server.events
Class TerrainEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.TerrainEvent
- All Implemented Interfaces:
- EventParser
public class TerrainEvent
- extends Event
this event contains information about the terrain
the server usually sends this event to the user when they log in
in the loginhandler.
it doesnt have an entity_id associated with it because
its general information about the world
Methods inherited from class atavism.server.engine.Event |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TerrainEvent
public TerrainEvent()
TerrainEvent
public TerrainEvent(AOByteBuffer buf,
ClientConnection con)
TerrainEvent
public TerrainEvent(java.lang.String terrainInfo)
setTerrain
public void setTerrain(java.lang.String terrainInfo)
getTerrain
public java.lang.String getTerrain()
toBytes
public AOByteBuffer toBytes()
- Specified by:
toBytes
in class Event
parseBytes
public void parseBytes(AOByteBuffer buf)
- Description copied from class:
Event
- load this event from the passed in buffer
called by the constructor
- Specified by:
parseBytes
in interface EventParser
- Specified by:
parseBytes
in class Event
getName
public java.lang.String getName()
- Specified by:
getName
in class Event