Provide a mechanism for unregistering a sprite.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@284 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-21 00:58:36 +00:00
parent dac504c7bb
commit bee0ae1ddb
@@ -1,5 +1,5 @@
// //
// $Id: SpriteManager.java,v 1.7 2001/08/15 22:06:21 shaper Exp $ // $Id: SpriteManager.java,v 1.8 2001/08/21 00:58:36 mdb Exp $
package com.threerings.media.sprite; package com.threerings.media.sprite;
@@ -33,7 +33,7 @@ public class SpriteManager
} }
/** /**
* Add a sprite to the set of sprites managed by this SpriteManager. * Add a sprite to the set of sprites managed by this manager.
* *
* @param sprite the sprite to add. * @param sprite the sprite to add.
*/ */
@@ -42,6 +42,17 @@ public class SpriteManager
_sprites.add(sprite); _sprites.add(sprite);
} }
/**
* Removes the specified sprite from the set of sprites managed by
* this manager.
*
* @param sprite the sprite to remove.
*/
public void removeSprite (Sprite sprite)
{
_sprites.remove(sprite);
}
/** /**
* Return the list of dirty rects in screen pixel coordinates that * Return the list of dirty rects in screen pixel coordinates that
* have been created by any sprites since the last time the dirty * have been created by any sprites since the last time the dirty