From b56061da460a57821f2b66ffbbe9b2d13982759e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 15 Dec 2004 02:39:58 +0000 Subject: [PATCH] Added a default implementation of getRatingTypeId() as well since that's a wacky notion from Yohoho that shouldn't really be in parlor in the first place. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3276 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/parlor/game/GameConfig.java | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/java/com/threerings/parlor/game/GameConfig.java b/src/java/com/threerings/parlor/game/GameConfig.java index f9edbfe85..e24e0c668 100644 --- a/src/java/com/threerings/parlor/game/GameConfig.java +++ b/src/java/com/threerings/parlor/game/GameConfig.java @@ -53,9 +53,18 @@ public abstract class GameConfig extends PlaceConfig implements Cloneable public boolean rated = true; /** - * Returns the game rating type. + * Returns the message bundle identifier for the bundle that should be + * used to translate the translatable strings used to describe the + * game config parameters. */ - public abstract byte getRatingTypeId (); + public abstract String getBundleName (); + + /** + * Creates a configurator that can be used to create a user interface + * for configuring this instance prior to starting the game. If no + * configuration is necessary, this method should return null. + */ + public abstract GameConfigurator createConfigurator (); /** * Returns a translatable label describing this game. @@ -69,18 +78,12 @@ public abstract class GameConfig extends PlaceConfig implements Cloneable } /** - * Returns the message bundle identifier for the bundle that should be - * used to translate the translatable strings used to describe the - * game config parameters. + * Returns the game rating type, if the system uses such things. */ - public abstract String getBundleName (); - - /** - * Creates a configurator that can be used to create a user interface - * for configuring this instance prior to starting the game. If no - * configuration is necessary, this method should return null. - */ - public abstract GameConfigurator createConfigurator (); + public byte getRatingTypeId () + { + return (byte)-1; + } /** * Returns an array of strings that describe the configuration of this