com.threerings.media.util
Class PathNode

java.lang.Object
  extended by com.threerings.media.util.PathNode

public class PathNode
extends Object

A path node is a single destination point in a Path.


Field Summary
 int dir
          The direction to face while heading toward the node.
 Point loc
          The node coordinates in screen pixels.
 
Constructor Summary
PathNode(int x, int y, int dir)
          Construct a path node object.
 
Method Summary
 String toString()
           
 void toString(StringBuilder buf)
          This should be overridden by derived classes (which should be sure to call super.toString()) to append the derived class specific path node information to the string buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

loc

public Point loc
The node coordinates in screen pixels.


dir

public int dir
The direction to face while heading toward the node.

Constructor Detail

PathNode

public PathNode(int x,
                int y,
                int dir)
Construct a path node object.

Parameters:
x - the node x-position.
y - the node y-position.
dir - the facing direction.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(StringBuilder buf)
This should be overridden by derived classes (which should be sure to call super.toString()) to append the derived class specific path node information to the string buffer.