Atavism Version 2018.1AGIS API

atavism.server.events
Class NewObjectEvent

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

public class NewObjectEvent
extends Event

the world server is telling a different server about a new object without serializing the obj - we dont serialize to the entitymgr because it doesnt need the full object


Field Summary
 boolean objFollowsTerrain
           
 Point objLoc
           
 java.lang.String objName
           
 OID objOid
           
 Quaternion objOrient
           
 AOVector objScale
           
 int objType
           
 
Constructor Summary
NewObjectEvent()
           
NewObjectEvent(AOByteBuffer buf, ClientConnection con)
           
NewObjectEvent(AOObject notifyObj, AOObject obj)
           
 
Method Summary
 java.lang.String getName()
           
static int getObjectType(AOObject obj)
           
static java.lang.String objectTypeToName(int id)
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 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
 

Field Detail

objOid

public OID objOid

objName

public java.lang.String objName

objLoc

public Point objLoc

objOrient

public Quaternion objOrient

objScale

public AOVector objScale

objType

public int objType

objFollowsTerrain

public boolean objFollowsTerrain
Constructor Detail

NewObjectEvent

public NewObjectEvent()

NewObjectEvent

public NewObjectEvent(AOByteBuffer buf,
                      ClientConnection con)

NewObjectEvent

public NewObjectEvent(AOObject notifyObj,
                      AOObject 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

getObjectType

public static int getObjectType(AOObject obj)

objectTypeToName

public static java.lang.String objectTypeToName(int id)


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