Make orientation of pathable at end of path available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2256 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: LineSegmentPath.java,v 1.27 2003/01/17 22:57:08 mdb Exp $
|
// $Id: LineSegmentPath.java,v 1.28 2003/02/12 05:27:57 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.util;
|
package com.threerings.media.util;
|
||||||
|
|
||||||
@@ -74,6 +74,16 @@ public class LineSegmentPath
|
|||||||
createPath(points);
|
createPath(points);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the orientation the sprite will face at the end of the
|
||||||
|
* path.
|
||||||
|
*/
|
||||||
|
public int getFinalOrientation ()
|
||||||
|
{
|
||||||
|
return (_nodes.size() == 0) ? NORTH :
|
||||||
|
((PathNode)_nodes.get(_nodes.size()-1)).dir;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a node to the path with the specified destination point and
|
* Add a node to the path with the specified destination point and
|
||||||
* facing direction.
|
* facing direction.
|
||||||
|
|||||||
Reference in New Issue
Block a user