Added support for pausing a media panel which pauses all sprites and
animations currently operating therein. (It doesn't pause scrolling which I suppose I'll have to fix at some point if we ever need it.) git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1292 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Path.java,v 1.4 2002/04/23 01:16:28 mdb Exp $
|
||||
// $Id: Path.java,v 1.5 2002/04/25 16:23:30 mdb Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
@@ -41,6 +41,14 @@ public interface Path
|
||||
*/
|
||||
public boolean updatePosition (Sprite sprite, long tickStamp);
|
||||
|
||||
/**
|
||||
* This is called if the sprite manager is paused for some length of
|
||||
* time and then unpaused. Paths should adjust any time stamps they
|
||||
* are maintaining internally by the delta so that time maintains the
|
||||
* illusion of flowing smoothly forward.
|
||||
*/
|
||||
public void fastForward (long timeDelta);
|
||||
|
||||
/**
|
||||
* Sets the velocity of this sprite in pixels per millisecond. The
|
||||
* velocity is measured as pixels traversed along the path that the
|
||||
|
||||
Reference in New Issue
Block a user