addObserver -> addClientObserver.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@982 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-09 20:47:11 +00:00
parent 284e8ef6ed
commit 635e9cf930
11 changed files with 22 additions and 22 deletions
@@ -1,5 +1,5 @@
// //
// $Id: ChatDirector.java,v 1.15 2002/02/03 08:22:38 shaper Exp $ // $Id: ChatDirector.java,v 1.16 2002/02/09 20:47:11 mdb Exp $
package com.threerings.crowd.chat; package com.threerings.crowd.chat;
@@ -36,7 +36,7 @@ public class ChatDirector
// register a client observer that will register us as the chat // register a client observer that will register us as the chat
// receiver when we log on // receiver when we log on
_ctx.getClient().addObserver(new ClientAdapter() { _ctx.getClient().addClientObserver(new ClientAdapter() {
public void clientDidLogon (Client client) public void clientDidLogon (Client client)
{ {
client.getInvocationDirector().registerReceiver( client.getInvocationDirector().registerReceiver(
@@ -1,5 +1,5 @@
// //
// $Id: LocationDirector.java,v 1.16 2001/12/16 05:18:20 mdb Exp $ // $Id: LocationDirector.java,v 1.17 2002/02/09 20:47:11 mdb Exp $
package com.threerings.crowd.client; package com.threerings.crowd.client;
@@ -47,7 +47,7 @@ public class LocationDirector
_ctx = ctx; _ctx = ctx;
// register ourselves as a client observer // register ourselves as a client observer
ctx.getClient().addObserver(this); ctx.getClient().addClientObserver(this);
} }
/** /**
@@ -1,5 +1,5 @@
// //
// $Id: ClientController.java,v 1.11 2001/12/20 01:10:51 shaper Exp $ // $Id: ClientController.java,v 1.12 2002/02/09 20:47:11 mdb Exp $
package com.threerings.micasa.client; package com.threerings.micasa.client;
@@ -34,7 +34,7 @@ public class ClientController
_frame = frame; _frame = frame;
// we want to know about logon/logoff // we want to know about logon/logoff
_ctx.getClient().addObserver(this); _ctx.getClient().addClientObserver(this);
// create the logon panel and display it // create the logon panel and display it
_logonPanel = new LogonPanel(_ctx); _logonPanel = new LogonPanel(_ctx);
@@ -1,5 +1,5 @@
// //
// $Id: MiCasaApp.java,v 1.5 2002/01/19 04:02:11 mdb Exp $ // $Id: MiCasaApp.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
package com.threerings.micasa.client; package com.threerings.micasa.client;
@@ -60,7 +60,7 @@ public class MiCasaApp
} }
// we want to exit when we logged off or failed to log on // we want to exit when we logged off or failed to log on
client.addObserver(new ClientAdapter() { client.addClientObserver(new ClientAdapter() {
public void clientFailedToLogon (Client c, Exception cause) { public void clientFailedToLogon (Client c, Exception cause) {
System.exit(0); System.exit(0);
} }
@@ -1,5 +1,5 @@
// //
// $Id: MiCasaApplet.java,v 1.5 2002/01/19 04:16:02 mdb Exp $ // $Id: MiCasaApplet.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
package com.threerings.micasa.client; package com.threerings.micasa.client;
@@ -46,7 +46,7 @@ public class MiCasaApplet extends Applet
new UsernamePasswordCreds(username, authkey)); new UsernamePasswordCreds(username, authkey));
// we want to hide the client frame when we logoff // we want to hide the client frame when we logoff
client.addObserver(new ClientAdapter() { client.addClientObserver(new ClientAdapter() {
public void clientDidLogoff (Client c) public void clientDidLogoff (Client c)
{ {
_frame.setVisible(false); _frame.setVisible(false);
@@ -1,5 +1,5 @@
// //
// $Id: ClientController.java,v 1.3 2002/02/05 22:57:44 mdb Exp $ // $Id: ClientController.java,v 1.4 2002/02/09 20:47:11 mdb Exp $
package com.threerings.micasa.simulator.client; package com.threerings.micasa.simulator.client;
@@ -39,7 +39,7 @@ public class ClientController
_info = info; _info = info;
// we want to know about logon/logoff // we want to know about logon/logoff
_ctx.getClient().addObserver(this); _ctx.getClient().addClientObserver(this);
} }
// documentation inherited // documentation inherited
@@ -1,5 +1,5 @@
// //
// $Id: SimulatorApp.java,v 1.4 2002/02/05 22:58:23 mdb Exp $ // $Id: SimulatorApp.java,v 1.5 2002/02/09 20:47:11 mdb Exp $
package com.threerings.micasa.simulator.client; package com.threerings.micasa.simulator.client;
@@ -86,7 +86,7 @@ public class SimulatorApp
client.setServer("localhost", Client.DEFAULT_SERVER_PORT); client.setServer("localhost", Client.DEFAULT_SERVER_PORT);
// we want to exit when we logged off or failed to log on // we want to exit when we logged off or failed to log on
client.addObserver(new ClientAdapter() { client.addClientObserver(new ClientAdapter() {
public void clientFailedToLogon (Client c, Exception cause) { public void clientFailedToLogon (Client c, Exception cause) {
System.exit(0); System.exit(0);
} }
@@ -1,5 +1,5 @@
// //
// $Id: TestClient.java,v 1.7 2001/11/08 02:07:36 mdb Exp $ // $Id: TestClient.java,v 1.8 2002/02/09 20:47:11 mdb Exp $
package com.threerings.crowd.client; package com.threerings.crowd.client;
@@ -28,7 +28,7 @@ public class TestClient
_occmgr = new OccupantManager(_ctx); _occmgr = new OccupantManager(_ctx);
// we want to know about logon/logoff // we want to know about logon/logoff
_client.addObserver(this); _client.addClientObserver(this);
// for test purposes, hardcode the server info // for test purposes, hardcode the server info
_client.setServer("localhost", 4007); _client.setServer("localhost", 4007);
@@ -1,5 +1,5 @@
// //
// $Id: TestClient.java,v 1.5 2001/11/08 02:07:36 mdb Exp $ // $Id: TestClient.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
package com.threerings.parlor; package com.threerings.parlor;
@@ -38,7 +38,7 @@ public class TestClient
_pardtr.setInvitationHandler(this); _pardtr.setInvitationHandler(this);
// we want to know about logon/logoff // we want to know about logon/logoff
_client.addObserver(this); _client.addClientObserver(this);
// for test purposes, hardcode the server info // for test purposes, hardcode the server info
_client.setServer("localhost", 4007); _client.setServer("localhost", 4007);
@@ -1,5 +1,5 @@
// //
// $Id: TestClient.java,v 1.12 2001/11/08 02:07:36 mdb Exp $ // $Id: TestClient.java,v 1.13 2002/02/09 20:47:11 mdb Exp $
package com.threerings.presents.client; package com.threerings.presents.client;
@@ -117,7 +117,7 @@ public class TestClient
new UsernamePasswordCreds("test", "test"); new UsernamePasswordCreds("test", "test");
Client client = new Client(creds, tclient); Client client = new Client(creds, tclient);
tclient.setClient(client); tclient.setClient(client);
client.addObserver(tclient); client.addClientObserver(tclient);
client.setServer("localhost", 4007); client.setServer("localhost", 4007);
client.logon(); client.logon();
// start up our event processing loop // start up our event processing loop
@@ -1,5 +1,5 @@
// //
// $Id: TestClient.java,v 1.9 2001/12/17 03:36:36 mdb Exp $ // $Id: TestClient.java,v 1.10 2002/02/09 20:47:11 mdb Exp $
package com.threerings.whirled; package com.threerings.whirled;
@@ -37,7 +37,7 @@ public class TestClient
_ctx, _locdir, _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.addClientObserver(this);
// we want to know about location changes // we want to know about location changes
_locdir.addLocationObserver(this); _locdir.addLocationObserver(this);