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:
Michael Bayne
2002-04-25 16:23:31 +00:00
parent 1ba123de96
commit 23d170c83e
11 changed files with 143 additions and 11 deletions
@@ -1,5 +1,5 @@
//
// $Id: BobbleAnimation.java,v 1.3 2002/04/15 18:18:20 mdb Exp $
// $Id: BobbleAnimation.java,v 1.4 2002/04/25 16:23:30 mdb Exp $
package com.threerings.media.animation;
@@ -58,6 +58,12 @@ public class BobbleAnimation extends Animation
_y = (_sy + dy) * ((RandomUtil.getInt(2) == 0) ? -1 : 1);
}
// documentation inherited
public void fastForward (long timeDelta)
{
_end += timeDelta;
}
// documentation inherited
public void paint (Graphics2D gfx)
{