com.threerings.micasa.lobby
Class LobbyManager
java.lang.Object
com.threerings.crowd.server.PlaceManager
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.
|
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 |
| 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 |
_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.
LobbyManager
public LobbyManager()
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