com.threerings.micasa.lobby
Class LobbyManager

java.lang.Object
  extended by com.threerings.crowd.server.PlaceManager
      extended by com.threerings.micasa.lobby.LobbyManager
All Implemented Interfaces:
SpeakHandler.SpeakerValidator, ChangeListener, MessageListener
Direct Known Subclasses:
TableLobbyManager

public class LobbyManager
extends PlaceManager

Takes care of the server side of a particular lobby.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.crowd.server.PlaceManager
PlaceManager.DelegateOp, PlaceManager.MessageHandler
 
Field Summary
protected  String _gameIdent
          The universal game identifier for the game matchmade by this lobby.
protected  String _name
          The human readable name of this lobby.
 
Fields inherited from class com.threerings.crowd.server.PlaceManager
_bodyUpdater, _config, _deathListener, _delegates, _dispatcher, _dispatcherFinders, _injector, _invmgr, _locator, _marshallers, _msghandlers, _occInfo, _occListener, _omgr, _plobj, _registry, _shutdownInterval
 
Constructor Summary
LobbyManager()
           
 
Method Summary
protected  PlaceObject createPlaceObject()
           
protected  String getConfigValue(Properties config, String key)
          Looks up a configuration property in the supplied properties object and throws an exception if it's not found.
 void init(LobbyRegistry lobreg, Properties config)
          Initializes this lobby manager with its configuration properties.
 
Methods inherited from class com.threerings.crowd.server.PlaceManager
addDelegate, addDispatcher, addOccupantInfo, addProvider, applyToDelegates, applyToOccupants, bodyEntered, bodyLeft, bodyUpdated, bodyWillEnter, bodyWillLeave, cancelShutdowner, checkPermissions, checkShutdownInterval, createSpeakHandler, didInit, didShutdown, didStartup, getAccessController, getConfig, getLocation, getPlaceObject, getPlaceObjectClass, idleUnloadPeriod, init, isValidSpeaker, messageReceived, permissionsFailed, placeBecameEmpty, ratifyBodyEntry, registerMessageHandler, shouldCreateSpeakService, shouldDeclareEmpty, shutdown, startup, toString, toString, updateOccupantInfo, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_gameIdent

protected String _gameIdent
The universal game identifier for the game matchmade by this lobby.


_name

protected String _name
The human readable name of this lobby.

Constructor Detail

LobbyManager

public LobbyManager()
Method Detail

init

public void init(LobbyRegistry lobreg,
                 Properties config)
          throws Exception
Initializes this lobby manager with its configuration properties.

Throws:
Exception - thrown if a configuration error is detected.

getConfigValue

protected String getConfigValue(Properties config,
                                String key)
                         throws Exception
Looks up a configuration property in the supplied properties object and throws an exception if it's not found.

Throws:
Exception

createPlaceObject

protected PlaceObject createPlaceObject()
Overrides:
createPlaceObject in class PlaceManager