Include the timestamp associated with sprite events in the event.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2020 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-12-04 02:45:09 +00:00
parent c321f7eb33
commit 6552b5bd8b
10 changed files with 39 additions and 24 deletions
@@ -1,5 +1,5 @@
//
// $Id: ArcPath.java,v 1.2 2002/11/27 23:48:24 mdb Exp $
// $Id: ArcPath.java,v 1.3 2002/12/04 02:45:09 shaper Exp $
package com.threerings.media.util;
@@ -131,7 +131,7 @@ public class ArcPath extends TimedPath
// if we completed our path, let the sprite know
if (angle == _sangle + _delta) {
pable.pathCompleted();
pable.pathCompleted(timestamp);
}
return modified;
@@ -1,5 +1,5 @@
//
// $Id: LinePath.java,v 1.10 2002/09/17 03:59:05 mdb Exp $
// $Id: LinePath.java,v 1.11 2002/12/04 02:45:09 shaper Exp $
package com.threerings.media.util;
@@ -45,7 +45,7 @@ public class LinePath extends TimedPath
// to the prearranged spot and get the hell out
if (timestamp >= _startStamp + _duration) {
pable.setLocation(_dest.x, _dest.y);
pable.pathCompleted();
pable.pathCompleted(timestamp);
return true;
}
@@ -1,5 +1,5 @@
//
// $Id: LineSegmentPath.java,v 1.25 2002/06/18 22:25:33 mdb Exp $
// $Id: LineSegmentPath.java,v 1.26 2002/12/04 02:45:09 shaper Exp $
package com.threerings.media.util;
@@ -172,7 +172,7 @@ public class LineSegmentPath
pable.setLocation(node.loc.x, node.loc.y);
}
// and let the pathable know that we're done
pable.pathCompleted();
pable.pathCompleted(timestamp);
return;
}
@@ -239,7 +239,7 @@ public class LineSegmentPath
if (!_niter.hasNext()) {
// move the pathable to the location of our last destination
pable.setLocation(_dest.loc.x, _dest.loc.y);
pable.pathCompleted();
pable.pathCompleted(now);
return true;
}
@@ -1,5 +1,5 @@
//
// $Id: Pathable.java,v 1.4 2002/07/02 23:15:53 shaper Exp $
// $Id: Pathable.java,v 1.5 2002/12/04 02:45:09 shaper Exp $
package com.threerings.media.util;
@@ -54,5 +54,5 @@ public interface Pathable
/**
* Called by a path when this pathable finishes moving along its path.
*/
public void pathCompleted ();
public void pathCompleted (long timestamp);
}