From a5844db478c3ddf6666dd1f309ecafa7594e3b57 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 23 May 2005 23:17:24 +0000 Subject: [PATCH] Rather that returning a String[] description, return a List. Subclasses can now easily add their own descriptions on to the beginning or end of their superclass's descriptions without having to do the hokey pokey. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3570 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/parlor/game/data/GameConfig.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/parlor/game/data/GameConfig.java b/src/java/com/threerings/parlor/game/data/GameConfig.java index 627159211..89708e54e 100644 --- a/src/java/com/threerings/parlor/game/data/GameConfig.java +++ b/src/java/com/threerings/parlor/game/data/GameConfig.java @@ -21,6 +21,9 @@ package com.threerings.parlor.game.data; +import java.util.ArrayList; +import java.util.List; + import com.threerings.crowd.data.PlaceConfig; import com.threerings.util.Name; @@ -92,16 +95,16 @@ public abstract class GameConfig extends PlaceConfig implements Cloneable } /** - * Returns an array of strings that describe the configuration of this + * Returns a List of strings that describe the configuration of this * game. This should eventually be rolled into a more general * purpose mechanism for generating descriptions of game * configurations as well as editors for game configurations (which * already exists in rudimentary form). Default implementation returns - * an empty array. + * an empty list. */ - public String[] getDescription () + public List getDescription () { - return new String[0]; + return new ArrayList(); // nothing by default } /**