Convenience wrappers.

I've been doing a whole bunch of AnimationSequences and 99% of the time
it's been one of those two stupid simple cases, so make them stupid
simple to do & stop cluttering up my code with extra args to linewrap.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@888 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-02-18 06:42:58 +00:00
parent dc58efd6a9
commit 2fb102fd7b
@@ -96,6 +96,22 @@ public class AnimationSequencer extends Animation
_queued.add(arec);
}
/**
* Convenience wrapper to add an animation to run at the same time as the previous one.
*/
public void addAnimation (Animation anim)
{
addAnimation(anim, 0, null);
}
/**
* Convenience wrapper to add an animation to run after the previous one.
*/
public void appendAnimation (Animation anim)
{
addAnimation(anim, -1, null);
}
/**
* Clears out the animations being managed by this sequencer.
*/