From df0ec942bd0ff206045b437131e18226cc18def4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 19 Jan 2002 07:00:40 +0000 Subject: [PATCH] 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 --- .../media/animation/AnimationManager.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/animation/AnimationManager.java b/src/java/com/threerings/media/animation/AnimationManager.java index a3faf0666..23f3ece5d 100644 --- a/src/java/com/threerings/media/animation/AnimationManager.java +++ b/src/java/com/threerings/media/animation/AnimationManager.java @@ -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. */