From 829de84fb6e3215fafac0e75c0aaf7eeaa5ebb37 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 20 Aug 2001 22:10:49 +0000 Subject: [PATCH] Updated test clients. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@280 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../java/com/threerings/crowd/client/TestClient.java | 11 +++++++++-- .../src/java/com/threerings/whirled/TestClient.java | 12 +++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/tests/src/java/com/threerings/crowd/client/TestClient.java b/tests/src/java/com/threerings/crowd/client/TestClient.java index bb0de67a7..333168b53 100644 --- a/tests/src/java/com/threerings/crowd/client/TestClient.java +++ b/tests/src/java/com/threerings/crowd/client/TestClient.java @@ -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(); diff --git a/tests/src/java/com/threerings/whirled/TestClient.java b/tests/src/java/com/threerings/whirled/TestClient.java index 4f8dda648..64814db96 100644 --- a/tests/src/java/com/threerings/whirled/TestClient.java +++ b/tests/src/java/com/threerings/whirled/TestClient.java @@ -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;