Atavism Version 2018.1AGIS API

atavism.server.events
Class WorldFileEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by atavism.server.events.WorldFileEvent
All Implemented Interfaces:
EventParser

public class WorldFileEvent
extends Event

this event contains information about the worldfile (scene) the server usually sends this event to the user when they log in in the loginhandler. it doesn't have an entity_id associated with it because its general information about the world


Constructor Summary
WorldFileEvent()
           
WorldFileEvent(AOByteBuffer buf, ClientConnection con)
           
WorldFileEvent(java.lang.String worldFileName)
           
WorldFileEvent(java.lang.String worldFileName, Point loc)
           
 
Method Summary
 Point getLoc()
           
 java.lang.String getName()
           
 java.lang.String getWorldFile()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setLoc(Point loc)
           
 void setWorldFile(java.lang.String worldFileName)
           
 AOByteBuffer toBytes()
           
 
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
 

Constructor Detail

WorldFileEvent

public WorldFileEvent()

WorldFileEvent

public WorldFileEvent(AOByteBuffer buf,
                      ClientConnection con)

WorldFileEvent

public WorldFileEvent(java.lang.String worldFileName)

WorldFileEvent

public WorldFileEvent(java.lang.String worldFileName,
                      Point loc)
Method Detail

setWorldFile

public void setWorldFile(java.lang.String worldFileName)

getWorldFile

public java.lang.String getWorldFile()

setLoc

public void setLoc(Point loc)

getLoc

public Point getLoc()

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


Copyright © 2018 Dragonsan Studios Sp. z o.o.