Atavism Version 2018.1AGIS API

atavism.server.engine
Class BasicWorldNode

java.lang.Object
  extended by atavism.server.engine.BasicWorldNode
All Implemented Interfaces:
IBasicWorldNode, java.io.Serializable

public class BasicWorldNode
extends java.lang.Object
implements IBasicWorldNode, java.io.Serializable

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.

See Also:
Serialized Form

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

instanceOid

protected OID instanceOid

loc

protected Point loc
The node location.


dir

protected AOVector dir
The node direction.


orient

protected Quaternion orient
The node orientation.

Constructor Detail

BasicWorldNode

public BasicWorldNode()
The no-args constructor required by marshalling.


BasicWorldNode

public BasicWorldNode(InterpolatedWorldNode inode)
Build a BasicWorldNode from an InterpolatedWorldNode.


BasicWorldNode

public BasicWorldNode(OID instanceOid,
                      AOVector dir,
                      Point loc,
                      Quaternion orient)
Method Detail

toString

public java.lang.String toString()
Create a human-readable representation of the node.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setupTransient

protected void setupTransient()
There is no lock associated with a BasicWorldNode, so there is nothing for setupTransient to do.


getInstanceOid

public OID getInstanceOid()
Specified by:
getInstanceOid in interface IBasicWorldNode

setInstanceOid

public void setInstanceOid(OID oid)
Specified by:
setInstanceOid in interface IBasicWorldNode

getLoc

public Point getLoc()
Getter for the node location.

Specified by:
getLoc in interface IBasicWorldNode
Returns:
The current location.

setLoc

public void setLoc(Point loc)
Setter for the node location.

Specified by:
setLoc in interface IBasicWorldNode
Parameters:
loc - The new location.

getOrientation

public Quaternion getOrientation()
Getter for the node orientation.

Specified by:
getOrientation in interface IBasicWorldNode
Returns:
The current orientation.

setOrientation

public void setOrientation(Quaternion orient)
Setter for the node orientation.

Specified by:
setOrientation in interface IBasicWorldNode
Parameters:
orient - The current 0rientation.

getDir

public AOVector getDir()
Getter for the node direction.

Specified by:
getDir in interface IBasicWorldNode
Returns:
The current direction.

setDir

public void setDir(AOVector dir)
Setter for the node direction.

Specified by:
setDir in interface IBasicWorldNode
Parameters:
dir - The new direction.


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