Create and have the sprite follow a path rather than explicitly

setting the sprite destination.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@152 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-02 20:43:03 +00:00
parent efb1881507
commit c41c097cd4
6 changed files with 186 additions and 96 deletions
@@ -1,5 +1,5 @@
//
// $Id: PathNode.java,v 1.1 2001/08/02 00:42:02 shaper Exp $
// $Id: PathNode.java,v 1.2 2001/08/02 20:43:03 shaper Exp $
package com.threerings.miso.sprite;
@@ -28,4 +28,16 @@ public class PathNode
loc = new Point(x, y);
this.dir = dir;
}
/**
* Return a string representation of this path node.
*/
public String toString ()
{
StringBuffer buf = new StringBuffer();
buf.append("[x=").append(loc.x);
buf.append(", y=").append(loc.y);
buf.append(", dir=").append(dir);
return buf.append("]").toString();
}
}