Major surgery to bring Whirled into line with the new PlaceConfig world

order. Also moved stuff from whirled.client.test and whirled.server.test
into whirled.test because it's silly having two separate test directories.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@401 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-05 23:59:37 +00:00
parent 09ef3cd972
commit 7d02b3d30b
13 changed files with 97 additions and 49 deletions
@@ -1,8 +1,9 @@
//
// $Id: DummyScene.java,v 1.3 2001/09/21 00:21:40 mdb Exp $
// $Id: DummyScene.java,v 1.4 2001/10/05 23:59:37 mdb Exp $
package com.threerings.whirled.client.test;
package com.threerings.whirled.test;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.whirled.data.Scene;
public class DummyScene implements Scene
@@ -32,5 +33,10 @@ public class DummyScene implements Scene
return null;
}
public PlaceConfig getPlaceConfig ()
{
return new TestConfig();
}
protected int _sceneId;
}
@@ -1,5 +1,5 @@
//
// $Id: EditableScene.java,v 1.2 2001/09/28 01:46:10 mdb Exp $
// $Id: EditableScene.java,v 1.3 2001/10/05 23:59:36 mdb Exp $
package com.threerings.whirled.data;
@@ -19,9 +19,4 @@ public interface EditableScene extends Scene
* Updates the scene's version.
*/
public void setVersion (int version);
/**
* Updates the scene's name.
*/
public void setName (String name);
}
@@ -1,17 +1,16 @@
//
// $Id: Scene.java,v 1.4 2001/09/21 02:30:35 mdb Exp $
// $Id: Scene.java,v 1.5 2001/10/05 23:59:36 mdb Exp $
package com.threerings.whirled.data;
import com.threerings.cocktail.party.data.PlaceConfig;
/**
* The base scene interface. This encapsulates the minimum information
* needed about a scene in the Whirled system.
*/
public interface Scene
{
/** Scene id to denote an unset or otherwise invalid scene id. */
public static final int SID_INVALID = -1;
/**
* Returns the scene's unique identifier.
*/
@@ -25,15 +24,22 @@ public interface Scene
*/
public int getVersion ();
/**
* Returns the scene's name. Every scene has a descriptive name.
*/
public String getName ();
/**
* Returns the scene ids of all scenes that neighbor this scene. A
* neighboring scene is one to which the user can traverse from this
* scene and vice versa.
*/
public int[] getNeighborIds ();
/**
* A scene is associated with a place on the server. Because the
* scenes are loaded on demand, the scene implementation must be able
* to provide a place config instance for each scene. This will allow
* the server to figure out what manager class to instantiate to
* manage the scene and all the client to figure out what controller
* class to instantiate to controll the scene. Additionally, it may
* contain runtime configuration information needed by the application
* using the Whirled services.
*/
public PlaceConfig getPlaceConfig ();
}