Added ability to construct animation manager without sprite manager and

then provide the reference later.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@881 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-01-19 07:00:40 +00:00
parent 4653b0b0a7
commit df0ec942bd
@@ -1,5 +1,5 @@
//
// $Id: AnimationManager.java,v 1.2 2002/01/11 16:53:34 shaper Exp $
// $Id: AnimationManager.java,v 1.3 2002/01/19 07:00:40 mdb Exp $
package com.threerings.media.animation;
@@ -50,6 +50,29 @@ public class AnimationManager
start();
}
/**
* Constructs and initializes an animation manager. If sprites are to
* be used with this animation manager, the other constructor should
* be used or the sprite manager should be set shortly after
* construction via {@link #setSpriteManager}. The animation manager
* will automatically start itself up, but must be explicitly shutdown
* when the animated view is no longer in operation via a call to
* {@link #stop}.
*/
public AnimationManager (AnimatedView view)
{
this(null, view);
}
/**
* Sets the sprite manager with which this animation manager should
* coordinate.
*/
public void setSpriteManager (SpriteManager spritemgr)
{
_spritemgr = spritemgr;
}
/**
* Starts the animation manager to doing its business.
*/