diff --git a/src/java/com/threerings/media/util/LineSegmentPath.java b/src/java/com/threerings/media/util/LineSegmentPath.java index 572bf64a6..bb844fd92 100644 --- a/src/java/com/threerings/media/util/LineSegmentPath.java +++ b/src/java/com/threerings/media/util/LineSegmentPath.java @@ -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; @@ -74,6 +74,16 @@ public class LineSegmentPath 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 * facing direction.