Updated test clients.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@280 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-20 22:10:49 +00:00
parent 695a90146c
commit 829de84fb6
2 changed files with 18 additions and 5 deletions
@@ -1,5 +1,5 @@
//
// $Id: TestClient.java,v 1.2 2001/07/23 21:14:27 mdb Exp $
// $Id: TestClient.java,v 1.3 2001/08/20 22:10:49 mdb Exp $
package com.threerings.cocktail.party.client.test;
@@ -11,7 +11,7 @@ import com.threerings.cocktail.cher.dobj.DObjectManager;
import com.threerings.cocktail.cher.net.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.client.LocationManager;
import com.threerings.cocktail.party.client.*;
import com.threerings.cocktail.party.util.PartyContext;
public class TestClient
@@ -26,6 +26,7 @@ public class TestClient
_config = new Config();
_client = new Client(creds, this);
_locmgr = new LocationManager(_ctx);
_occmgr = new OccupantManager(_ctx);
// we want to know about logon/logoff
_client.addObserver(this);
@@ -115,11 +116,17 @@ public class TestClient
{
return _locmgr;
}
public OccupantManager getOccupantManager ()
{
return _occmgr;
}
}
protected Config _config;
protected Client _client;
protected LocationManager _locmgr;
protected OccupantManager _occmgr;
protected PartyContext _ctx;
protected Queue _queue = new Queue();
@@ -1,5 +1,5 @@
//
// $Id: TestClient.java,v 1.1 2001/08/14 06:51:07 mdb Exp $
// $Id: TestClient.java,v 1.2 2001/08/20 22:10:49 mdb Exp $
package com.threerings.whirled.client.test;
@@ -11,8 +11,7 @@ import com.threerings.cocktail.cher.dobj.DObjectManager;
import com.threerings.cocktail.cher.net.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.client.LocationManager;
import com.threerings.cocktail.party.client.LocationObserver;
import com.threerings.cocktail.party.client.*;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.whirled.client.SceneManager;
@@ -31,6 +30,7 @@ public class TestClient
_config = new Config();
_client = new Client(creds, this);
_screp = new DummySceneRepository();
_occmgr = new OccupantManager(_ctx);
_scmgr = new SceneManager(_ctx, _screp);
// we want to know about logon/logoff
@@ -143,6 +143,11 @@ public class TestClient
return _scmgr;
}
public OccupantManager getOccupantManager ()
{
return _occmgr;
}
public SceneManager getSceneManager ()
{
return _scmgr;
@@ -152,6 +157,7 @@ public class TestClient
protected Config _config;
protected Client _client;
protected SceneManager _scmgr;
protected OccupantManager _occmgr;
protected SceneRepository _screp;
protected WhirledContext _ctx;