Documentation cleanup; removed vestigal _lastidx.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1912 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-11-05 21:23:55 +00:00
parent f3fd0744ec
commit 913264c225
@@ -1,5 +1,5 @@
// //
// $Id: AnimationSequencer.java,v 1.4 2002/11/05 21:17:32 mdb Exp $ // $Id: AnimationSequencer.java,v 1.5 2002/11/05 21:23:55 mdb Exp $
package com.threerings.media.animation; package com.threerings.media.animation;
@@ -12,8 +12,10 @@ import com.threerings.media.Log;
/** /**
* An animation that provides facilities for adding a sequence of * An animation that provides facilities for adding a sequence of
* animations with a standard or per-animation-specifiable delay between * animations that are fired after a fixed time interval has elapsed or
* each. * after previous animations in the sequence have completed. Facilities
* are also provided for running code upon the completion of animations in
* the sequence.
*/ */
public abstract class AnimationSequencer extends Animation public abstract class AnimationSequencer extends Animation
{ {
@@ -29,17 +31,17 @@ public abstract class AnimationSequencer extends Animation
/** /**
* Adds the supplied animation to the sequence with the given * Adds the supplied animation to the sequence with the given
* parameters. Note that this cannot be called after the animation * parameters. Note that care should be taken if this is called after
* sequence has begun executing without endangering your sanity and * the animation sequence has begun firing animations.
* the robustness of your code.
* *
* @param anim the animation to be sequenced, or null if the * @param anim the animation to be sequenced, or null if the
* completion action should be run immediately when this animation is * completion action should be run immediately when this "animation"
* ready to fired. * is ready to fired.
* @param delta the number of milliseconds following the start of the last * @param delta the number of milliseconds following the
* animation currently in the sequence that this animation should be * <em>start</em> of the previous animation in the queue that this
* started; or -1 which means that this animation should be started * animation should be started; 0 if it should be started
* when the last animation has completed. * simultaneously with its predecessor int the queue; -1 if it should
* be started when its predecessor has completed.
* @param completionAction a runnable to be executed when this * @param completionAction a runnable to be executed when this
* animation completes. * animation completes.
*/ */
@@ -217,15 +219,12 @@ public abstract class AnimationSequencer extends Animation
protected Runnable _completionAction; protected Runnable _completionAction;
} }
/** The animation records detailing the animations to be sequenced. */ /** Animations that have not been fired. */
protected ArrayList _queued = new ArrayList(); protected ArrayList _queued = new ArrayList();
/** The animations that are currently running. */ /** Animations that are currently running. */
protected ArrayList _running = new ArrayList(); protected ArrayList _running = new ArrayList();
/** The index of the last animation that was added. */ /** The timestamp at which we fired the last animation. */
protected int _lastidx = -1;
/** The timestamp at which we added the last animation. */
protected long _lastStamp; protected long _lastStamp;
} }