Modified sprites not to take a sprite manager reference upon construction
but to have it set by the sprite manager when it is requested to manage them. Modified sprite manager to invalidate the view when sprites are added and removed. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@295 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CharacterSprite.java,v 1.7 2001/08/16 23:14:21 mdb Exp $
|
||||
// $Id: CharacterSprite.java,v 1.8 2001/08/21 19:40:30 mdb Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -26,10 +26,9 @@ public class AmbulatorySprite extends Sprite implements Traverser
|
||||
* @param anims the set of multi-frame images to use when animating
|
||||
* the sprite in each of the compass directions.
|
||||
*/
|
||||
public AmbulatorySprite (SpriteManager spritemgr, int x, int y,
|
||||
MultiFrameImage[] anims)
|
||||
public AmbulatorySprite (int x, int y, MultiFrameImage[] anims)
|
||||
{
|
||||
super(spritemgr, x, y);
|
||||
super(x, y);
|
||||
|
||||
_anims = anims;
|
||||
_dir = Path.DIR_SOUTH;
|
||||
|
||||
Reference in New Issue
Block a user