The big fat bernie revamp! Er, big fat miso revamp rather:

- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
  resolved scene information (like base, object and fringe tiles) itself
  so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
  and object information loaded only for what is potentially visible
  rather than for the whole scene.

Other things were surely cleaned up or broken in the process to keep a
keen eye out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-17 19:21:17 +00:00
parent 3de98670db
commit d5701962a3
38 changed files with 2943 additions and 2532 deletions
@@ -1,5 +1,5 @@
//
// $Id: DummyClientSceneRepository.java,v 1.5 2001/11/18 04:09:21 mdb Exp $
// $Id: DummyClientSceneRepository.java,v 1.6 2003/04/17 19:21:17 mdb Exp $
package com.threerings.whirled;
@@ -26,7 +26,14 @@ public class DummyClientSceneRepository implements SceneRepository
}
// documentation inherited
public void updateSceneModel (SceneModel scene)
public void storeSceneModel (SceneModel model)
throws IOException
{
// nothing doing
}
// documentation inherited
public void deleteSceneModel (int sceneId)
throws IOException
{
// nothing doing
@@ -1,5 +1,5 @@
//
// $Id: SpotSceneParserTest.java,v 1.4 2003/02/12 07:24:08 mdb Exp $
// $Id: SpotSceneParserTest.java,v 1.5 2003/04/17 19:21:17 mdb Exp $
package com.threerings.whirled.spot.tools.xml;
@@ -8,7 +8,8 @@ import com.samskivert.test.TestUtil;
import junit.framework.Test;
import junit.framework.TestCase;
import com.threerings.whirled.spot.data.SpotScene;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.tools.xml.SceneParser;
public class SpotSceneParserTest extends TestCase
{
@@ -20,9 +21,10 @@ public class SpotSceneParserTest extends TestCase
public void runTest ()
{
try {
SpotSceneParser parser = new SpotSceneParser("scene");
SceneParser parser = new SceneParser("scene");
parser.registerAuxRuleSet(new SpotSceneRuleSet());
String tspath = TestUtil.getResourcePath(TEST_SCENE_PATH);
SpotScene scene = parser.parseScene(tspath);
SceneModel scene = parser.parseScene(tspath);
System.out.println("Parsed " + scene + ".");
} catch (Exception e) {
@@ -1,5 +1,5 @@
//
// $Id: SceneParserTest.java,v 1.4 2003/02/12 07:24:08 mdb Exp $
// $Id: SceneParserTest.java,v 1.5 2003/04/17 19:21:17 mdb Exp $
package com.threerings.whirled.tools.xml;
@@ -8,7 +8,7 @@ import com.samskivert.test.TestUtil;
import junit.framework.Test;
import junit.framework.TestCase;
import com.threerings.whirled.data.Scene;
import com.threerings.whirled.data.SceneModel;
public class SceneParserTest extends TestCase
{
@@ -22,7 +22,7 @@ public class SceneParserTest extends TestCase
try {
SceneParser parser = new SceneParser("scene");
String tspath = TestUtil.getResourcePath(TEST_SCENE_PATH);
Scene scene = parser.parseScene(tspath);
SceneModel scene = parser.parseScene(tspath);
System.out.println("Parsed " + scene + ".");
} catch (Exception e) {