public class NewObjectEvent extends Event
| Modifier and Type | Field and Description |
|---|---|
boolean |
objFollowsTerrain |
Point |
objLoc |
java.lang.String |
objName |
OID |
objOid |
Quaternion |
objOrient |
AOVector |
objScale |
int |
objType |
| Constructor and Description |
|---|
NewObjectEvent() |
NewObjectEvent(AOByteBuffer buf,
ClientConnection con) |
NewObjectEvent(AOObject notifyObj,
AOObject obj) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toStringpublic OID objOid
public java.lang.String objName
public Point objLoc
public Quaternion objOrient
public AOVector objScale
public int objType
public boolean objFollowsTerrain
public NewObjectEvent()
public NewObjectEvent(AOByteBuffer buf, ClientConnection con)
public AOByteBuffer toBytes()
public void parseBytes(AOByteBuffer buf)
EventparseBytes in interface EventParserparseBytes in class Eventpublic static int getObjectType(AOObject obj)
public static java.lang.String objectTypeToName(int id)