Atavism Version 2018.1AGIS API

atavism.server.events
Class RegisterEntityEvent

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

public class RegisterEntityEvent
extends Event

the server is receiving a serialized entity in this event the proxy server sends the approp world server the serialized entity.


Constructor Summary
RegisterEntityEvent()
           
RegisterEntityEvent(AOByteBuffer buf, ClientConnection con)
           
RegisterEntityEvent(byte[] data, boolean isPortaling)
          we pass in the data instead of the entity because we may be getting back 'newer' entity data than we have in storage - see RegisterEntityResponse.java..
 
Method Summary
 byte[] getData()
          the serialized entity data
 java.lang.String getName()
           
 boolean isPortal()
           
 void isPortal(boolean b)
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setData(byte[] bytes)
           
 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

RegisterEntityEvent

public RegisterEntityEvent()

RegisterEntityEvent

public RegisterEntityEvent(AOByteBuffer buf,
                           ClientConnection con)

RegisterEntityEvent

public RegisterEntityEvent(byte[] data,
                           boolean isPortaling)
we pass in the data instead of the entity because we may be getting back 'newer' entity data than we have in storage - see RegisterEntityResponse.java.. a server may send us the data at any time when the user 'zones' is portaling means whether the object is coming into the 'world' for the first time. in which case we tell it extra stuff, like sending it a newobject message about itself.

Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Event

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

getData

public byte[] getData()
the serialized entity data


setData

public void setData(byte[] bytes)

isPortal

public void isPortal(boolean b)

isPortal

public boolean isPortal()


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