Added basic framework for providing game configuration interfaces that can

be used by a matchmaking interface when setting up a game.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1617 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-07-25 23:20:22 +00:00
parent d06aeb2cc7
commit b7b44f5f14
4 changed files with 191 additions and 56 deletions
@@ -1,9 +1,10 @@
//
// $Id: GameConfig.java,v 1.10 2002/07/23 05:54:52 mdb Exp $
// $Id: GameConfig.java,v 1.11 2002/07/25 23:20:22 mdb Exp $
package com.threerings.parlor.game;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.parlor.client.GameConfigurator;
/**
* The game config class encapsulates the configuration information for a
@@ -27,6 +28,14 @@ public abstract class GameConfig extends PlaceConfig
/** Indicates whether or not this game is rated. */
public boolean rated = true;
/**
* Returns the class that should be used to create a user interface
* that can be used to configure this instance prior to starting the
* game. The configurator class must derive from {@link
* GameConfigurator}.
*/
public abstract Class getConfiguratorClass ();
/**
* Returns true if this game config object is equal to the supplied
* object (meaning it is also a game config object and its