|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.engine.BasicWorldNode
public class BasicWorldNode
This is the form of the world node that can be passed around from plugin to plugin, because it doesn't depend on being interpolatable. It contains a location, direction and orientation.
Field Summary | |
---|---|
protected AOVector |
dir
The node direction. |
protected OID |
instanceOid
|
protected Point |
loc
The node location. |
protected Quaternion |
orient
The node orientation. |
Constructor Summary | |
---|---|
BasicWorldNode()
The no-args constructor required by marshalling. |
|
BasicWorldNode(InterpolatedWorldNode inode)
Build a BasicWorldNode from an InterpolatedWorldNode. |
|
BasicWorldNode(OID instanceOid,
AOVector dir,
Point loc,
Quaternion orient)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
AOVector |
getDir()
Getter for the node direction. |
OID |
getInstanceOid()
|
Point |
getLoc()
Getter for the node location. |
Quaternion |
getOrientation()
Getter for the node orientation. |
void |
setDir(AOVector dir)
Setter for the node direction. |
void |
setInstanceOid(OID oid)
|
void |
setLoc(Point loc)
Setter for the node location. |
void |
setOrientation(Quaternion orient)
Setter for the node orientation. |
protected void |
setupTransient()
There is no lock associated with a BasicWorldNode, so there is nothing for setupTransient to do. |
java.lang.String |
toString()
Create a human-readable representation of the node. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected OID instanceOid
protected Point loc
protected AOVector dir
protected Quaternion orient
Constructor Detail |
---|
public BasicWorldNode()
public BasicWorldNode(InterpolatedWorldNode inode)
public BasicWorldNode(OID instanceOid, AOVector dir, Point loc, Quaternion orient)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected void setupTransient()
public OID getInstanceOid()
getInstanceOid
in interface IBasicWorldNode
public void setInstanceOid(OID oid)
setInstanceOid
in interface IBasicWorldNode
public Point getLoc()
getLoc
in interface IBasicWorldNode
public void setLoc(Point loc)
setLoc
in interface IBasicWorldNode
loc
- The new location.public Quaternion getOrientation()
getOrientation
in interface IBasicWorldNode
public void setOrientation(Quaternion orient)
setOrientation
in interface IBasicWorldNode
orient
- The current 0rientation.public AOVector getDir()
getDir
in interface IBasicWorldNode
public void setDir(AOVector dir)
setDir
in interface IBasicWorldNode
dir
- The new direction.
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |