Atavism Version 2018.1AGIS API

atavism.server.events
Class RegisterEntityResponseEvent

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

public class RegisterEntityResponseEvent
extends Event

we are responding a registerentity event we use the data stored rather than the getEntity.toBytes() when we call toBytes() because its what the server tells us that is the correct information.


Constructor Summary
RegisterEntityResponseEvent()
           
RegisterEntityResponseEvent(AOByteBuffer buf, ClientConnection con)
           
RegisterEntityResponseEvent(AOObject obj, boolean status, boolean portalRequest)
          was the original request for a portaling obj
 
Method Summary
 byte[] getData()
           
 java.lang.String getName()
           
 boolean getStatus()
          returns false if the connection is closed
 boolean isPortal()
           
 void isPortal(boolean flag)
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setData(byte[] data)
           
 void setStatus(boolean status)
           
 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

RegisterEntityResponseEvent

public RegisterEntityResponseEvent()

RegisterEntityResponseEvent

public RegisterEntityResponseEvent(AOByteBuffer buf,
                                   ClientConnection con)

RegisterEntityResponseEvent

public RegisterEntityResponseEvent(AOObject obj,
                                   boolean status,
                                   boolean portalRequest)
was the original request for a portaling obj

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()

setData

public void setData(byte[] data)

getStatus

public boolean getStatus()
returns false if the connection is closed


setStatus

public void setStatus(boolean status)

isPortal

public void isPortal(boolean flag)

isPortal

public boolean isPortal()


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