com.threerings.micasa.lobby
Class LobbyConfig
java.lang.Object
com.threerings.io.SimpleStreamableObject
com.threerings.crowd.data.PlaceConfig
com.threerings.micasa.lobby.LobbyConfig
- All Implemented Interfaces:
- Streamable
- Direct Known Subclasses:
- TableLobbyConfig
public class LobbyConfig
- extends PlaceConfig
|
Field Summary |
protected String |
_gameConfigClass
The name of the game config class that represents the type of game
we are matchmaking for in this lobby. |
_gameConfigClass
protected String _gameConfigClass
- The name of the game config class that represents the type of game
we are matchmaking for in this lobby.
LobbyConfig
public LobbyConfig()
createController
public PlaceController createController()
- Overrides:
createController in class PlaceConfig
getManagerClassName
public String getManagerClassName()
- Specified by:
getManagerClassName in class PlaceConfig
createMatchMakingView
public JComponent createMatchMakingView(MiCasaContext ctx)
- Derived classes override this function and create the appropriate
matchmaking user interface component.
getGameConfig
public GameConfig getGameConfig()
throws Exception
- Instantiates and returns a game config instance using the game
config classname provided by the lobby configuration parameters.
- Throws:
Exception - thrown if a problem occurs loading or
instantiating the class.
init
public void init(Properties config)
throws Exception
- Initializes this lobby config object with the properties that are
used to configure the lobby. This is called on the server when the
lobby is loaded.
- Throws:
Exception
toString
protected void toString(StringBuilder buf)
- Overrides:
toString in class PlaceConfig
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