Updates to reflect new media architecture.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2123 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CharSpriteViz.java,v 1.2 2002/07/19 20:13:29 shaper Exp $
|
||||
// $Id: CharSpriteViz.java,v 1.3 2003/01/13 22:57:45 mdb Exp $
|
||||
|
||||
package com.threerings.cast;
|
||||
|
||||
@@ -16,7 +16,7 @@ import javax.swing.JPanel;
|
||||
|
||||
import com.samskivert.swing.util.SwingUtil;
|
||||
|
||||
import com.threerings.media.ImageManager;
|
||||
import com.threerings.media.image.ImageManager;
|
||||
import com.threerings.resource.ResourceManager;
|
||||
import com.threerings.util.DirectionCodes;
|
||||
import com.threerings.util.DirectionUtil;
|
||||
@@ -40,7 +40,7 @@ public class CharSpriteViz extends JPanel
|
||||
// put the sprite in the appropriate action mode
|
||||
_sprite.setRestingAction(action);
|
||||
_sprite.setFollowingPathAction(action);
|
||||
_sprite.setActionSequence(action);
|
||||
_sprite.setActionSequence(action, false);
|
||||
|
||||
addMouseMotionListener(this);
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public class CharSpriteViz extends JPanel
|
||||
ImageManager imgr = new ImageManager(rmgr, frame);
|
||||
ComponentRepository crepo =
|
||||
new BundledComponentRepository(rmgr, imgr, "components");
|
||||
CharacterManager charmgr = new CharacterManager(crepo);
|
||||
CharacterManager charmgr = new CharacterManager(imgr, crepo);
|
||||
CharacterComponent ccomp = crepo.getComponent(args[0], args[1]);
|
||||
|
||||
frame.getContentPane().add(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestApp.java,v 1.15 2002/07/19 20:13:29 shaper Exp $
|
||||
// $Id: TestApp.java,v 1.16 2003/01/13 22:57:45 mdb Exp $
|
||||
|
||||
package com.threerings.cast.builder;
|
||||
|
||||
@@ -8,7 +8,7 @@ import javax.swing.JFrame;
|
||||
|
||||
import com.samskivert.swing.util.SwingUtil;
|
||||
|
||||
import com.threerings.media.ImageManager;
|
||||
import com.threerings.media.image.ImageManager;
|
||||
import com.threerings.resource.ResourceManager;
|
||||
|
||||
import com.threerings.cast.Log;
|
||||
@@ -16,8 +16,6 @@ import com.threerings.cast.CharacterManager;
|
||||
import com.threerings.cast.ComponentRepository;
|
||||
import com.threerings.cast.bundle.BundledComponentRepository;
|
||||
|
||||
import com.threerings.miso.scene.MisoCharacterSprite;
|
||||
|
||||
public class TestApp
|
||||
{
|
||||
public TestApp (String[] args)
|
||||
@@ -33,8 +31,7 @@ public class TestApp
|
||||
|
||||
ComponentRepository crepo =
|
||||
new BundledComponentRepository(rmgr, imgr, "components");
|
||||
CharacterManager charmgr = new CharacterManager(crepo);
|
||||
charmgr.setCharacterClass(MisoCharacterSprite.class);
|
||||
CharacterManager charmgr = new CharacterManager(imgr, crepo);
|
||||
|
||||
// initialize the frame
|
||||
((TestFrame)_frame).init(charmgr, crepo);
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
//
|
||||
// $Id: BundledComponentRepositoryTest.java,v 1.7 2002/07/19 20:13:29 shaper Exp $
|
||||
// $Id: BundledComponentRepositoryTest.java,v 1.8 2003/01/13 22:57:45 mdb Exp $
|
||||
|
||||
package com.threerings.cast.bundle;
|
||||
|
||||
import java.util.Iterator;
|
||||
import com.samskivert.util.StringUtil;
|
||||
import com.threerings.resource.ResourceManager;
|
||||
import com.threerings.media.ImageManager;
|
||||
|
||||
import com.threerings.cast.ComponentClass;
|
||||
import com.threerings.media.image.ImageManager;
|
||||
import com.threerings.resource.ResourceManager;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
Reference in New Issue
Block a user