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,7 +1,7 @@
//
// $Id: DummyClientSceneRepository.java,v 1.1 2001/08/14 06:51:07 mdb Exp $
// $Id: DummyClientSceneRepository.java,v 1.2 2001/10/05 23:59:37 mdb Exp $
package com.threerings.whirled.client.test;
package com.threerings.whirled.test;
import java.io.IOException;
@@ -15,7 +15,7 @@ import com.threerings.whirled.util.NoSuchSceneException;
* in fact it just creates new blank scenes when requested to load a scene
* and does nothing when requested to save one.
*/
public class DummySceneRepository implements SceneRepository
public class DummyClientSceneRepository implements SceneRepository
{
// documentation inherited
public Scene loadScene (int sceneId)
@@ -1,7 +1,7 @@
//
// $Id: TestClient.java,v 1.3 2001/10/01 22:16:02 mdb Exp $
// $Id: TestClient.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.samskivert.util.Config;
import com.samskivert.util.Queue;
@@ -29,7 +29,7 @@ public class TestClient
// create the handles for our various services
_config = new Config();
_client = new Client(creds, this);
_screp = new DummySceneRepository();
_screp = new DummyClientSceneRepository();
_occmgr = new OccupantManager(_ctx);
_scdir = new SceneDirector(_ctx, _screp);
@@ -0,0 +1,20 @@
//
// $Id: TestConfig.java,v 1.1 2001/10/05 23:59:37 mdb Exp $
package com.threerings.whirled.test;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.whirled.server.SceneManager;
public class TestConfig extends PlaceConfig
{
public Class getControllerClass ()
{
return TestController.class;
}
public String getManagerClassName ()
{
return SceneManager.class.getName();
}
}
@@ -0,0 +1,15 @@
//
// $Id: TestController.java,v 1.1 2001/10/05 23:59:37 mdb Exp $
package com.threerings.whirled.test;
import com.threerings.cocktail.party.client.*;
public class TestController extends PlaceController
{
protected PlaceView createPlaceView ()
{
// nothing doing
return null;
}
}