Making things work; moving lobby stuff entirely into lobby; simplifying.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@411 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-09 17:47:33 +00:00
parent 0546a29259
commit f8846ab016
7 changed files with 85 additions and 53 deletions
@@ -1,5 +1,5 @@
//
// $Id: LobbyController.java,v 1.1 2001/10/09 00:48:34 mdb Exp $
// $Id: LobbyController.java,v 1.2 2001/10/09 17:47:33 mdb Exp $
package com.threerings.micasa.lobby;
@@ -9,6 +9,8 @@ import com.threerings.cocktail.party.client.PlaceView;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.micasa.Log;
import com.threerings.micasa.client.ChatPanel;
import com.threerings.micasa.util.MiCasaContext;
public class LobbyController extends PlaceController
{
@@ -1,11 +1,13 @@
//
// $Id: LobbyManager.java,v 1.2 2001/10/04 23:41:44 mdb Exp $
// $Id: LobbyManager.java,v 1.3 2001/10/09 17:47:33 mdb Exp $
package com.threerings.micasa.lobby;
import java.util.Properties;
import com.samskivert.util.StringUtil;
import com.threerings.cocktail.party.chat.ChatService;
import com.threerings.cocktail.party.chat.ChatMessageHandler;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.micasa.Log;
@@ -59,6 +61,11 @@ public class LobbyManager extends PlaceManager
// let the lobby registry know that we're up and running
_lobreg.lobbyReady(_plobj.getOid(), _gameIdent, _name);
// register a chat message handler because we want to support
// chatting
MessageHandler handler = new ChatMessageHandler();
registerMessageHandler(ChatService.SPEAK_REQUEST, handler);
}
/** The universal game identifier for the game matchmade by this