Version 1.5APIs subject to change!

multiverse.server.engine
Class BasicWorldNode

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

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  MVVector dir
          The node direction.
protected  long 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.
 
Method Summary
 MVVector getDir()
          Getter for the node direction.
 long getInstanceOid()
           
 Point getLoc()
          Getter for the node location.
 Quaternion getOrientation()
          Getter for the node orientation.
 void setDir(MVVector dir)
          Setter for the node direction.
 void setInstanceOid(long 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instanceOid

protected long instanceOid

loc

protected Point loc
The node location.


dir

protected MVVector 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.

Method Detail

toString

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

Overrides:
toString 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 long getInstanceOid()
Specified by:
getInstanceOid in interface IBasicWorldNode

setInstanceOid

public void setInstanceOid(long 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 MVVector getDir()
Getter for the node direction.

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

setDir

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

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


Copyright © 2008 The Multiverse Network, Inc.