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:
@@ -96,6 +96,22 @@ public class AnimationSequencer extends Animation
|
|||||||
_queued.add(arec);
|
_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.
|
* Clears out the animations being managed by this sequencer.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user