Updated to deal with new director organization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@819 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TestClient.java,v 1.8 2001/11/18 04:09:21 mdb Exp $
|
// $Id: TestClient.java,v 1.9 2001/12/17 03:36:36 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled;
|
package com.threerings.whirled;
|
||||||
|
|
||||||
@@ -32,14 +32,15 @@ public class TestClient
|
|||||||
_client = new Client(creds, this);
|
_client = new Client(creds, this);
|
||||||
_screp = new DummyClientSceneRepository();
|
_screp = new DummyClientSceneRepository();
|
||||||
_occmgr = new OccupantManager(_ctx);
|
_occmgr = new OccupantManager(_ctx);
|
||||||
|
_locdir = new LocationDirector(_ctx);
|
||||||
_scdir = new SceneDirector(
|
_scdir = new SceneDirector(
|
||||||
_ctx, _screp, new DefaultDisplaySceneFactory());
|
_ctx, _locdir, _screp, new DefaultDisplaySceneFactory());
|
||||||
|
|
||||||
// we want to know about logon/logoff
|
// we want to know about logon/logoff
|
||||||
_client.addObserver(this);
|
_client.addObserver(this);
|
||||||
|
|
||||||
// we want to know about location changes
|
// we want to know about location changes
|
||||||
_scdir.addLocationObserver(this);
|
_locdir.addLocationObserver(this);
|
||||||
|
|
||||||
// for test purposes, hardcode the server info
|
// for test purposes, hardcode the server info
|
||||||
_client.setServer("localhost", 4007);
|
_client.setServer("localhost", 4007);
|
||||||
@@ -142,7 +143,7 @@ public class TestClient
|
|||||||
|
|
||||||
public LocationDirector getLocationDirector ()
|
public LocationDirector getLocationDirector ()
|
||||||
{
|
{
|
||||||
return _scdir;
|
return _locdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OccupantManager getOccupantManager ()
|
public OccupantManager getOccupantManager ()
|
||||||
@@ -163,6 +164,7 @@ public class TestClient
|
|||||||
|
|
||||||
protected Config _config;
|
protected Config _config;
|
||||||
protected Client _client;
|
protected Client _client;
|
||||||
|
protected LocationDirector _locdir;
|
||||||
protected SceneDirector _scdir;
|
protected SceneDirector _scdir;
|
||||||
protected OccupantManager _occmgr;
|
protected OccupantManager _occmgr;
|
||||||
protected SceneRepository _screp;
|
protected SceneRepository _screp;
|
||||||
|
|||||||
Reference in New Issue
Block a user