diff options
Diffstat (limited to 'src/jrummikub/view/ISettingsPanel.java')
-rw-r--r-- | src/jrummikub/view/ISettingsPanel.java | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/jrummikub/view/ISettingsPanel.java b/src/jrummikub/view/ISettingsPanel.java index 2b5aa58..f1737a9 100644 --- a/src/jrummikub/view/ISettingsPanel.java +++ b/src/jrummikub/view/ISettingsPanel.java @@ -10,7 +10,6 @@ import jrummikub.model.StoneColor; import jrummikub.util.IEvent; import jrummikub.util.IEvent1; import jrummikub.util.IEvent2; -import jrummikub.util.Pair; /** * The panel for the game setup @@ -40,8 +39,8 @@ public interface ISettingsPanel { public void enableNetworkMode(boolean enable); /** - * The add player event is emitted when the user wants to add a player to - * the player list + * The add player event is emitted when the user wants to add a player to the + * player list * * @return the event */ @@ -88,8 +87,8 @@ public interface ISettingsPanel { public IEvent1<Integer> getChangeInitialMeldThresholdEvent(); /** - * The change StoneSet number event is emitted when the user wants to use - * more or less than 2 StoneSets per color + * The change StoneSet number event is emitted when the user wants to use more + * or less than 2 StoneSets per color * * @return number of SoneSets */ @@ -130,7 +129,7 @@ public interface ISettingsPanel { * Sets an error to display * * @param error - * the kind of error + * the kind of error */ public void setError(SettingsError error); @@ -138,7 +137,7 @@ public interface ISettingsPanel { * Enables or disables the start game button * * @param enable - * specifies if the button is to be enabled or disabled + * specifies if the button is to be enabled or disabled */ public void enableStartGameButton(boolean enable); @@ -146,7 +145,7 @@ public interface ISettingsPanel { * Enables or disables the add player button * * @param enable - * specifies if the button is to be enabled or disabled + * specifies if the button is to be enabled or disabled */ public void enableAddPlayerButton(boolean enable); @@ -154,16 +153,16 @@ public interface ISettingsPanel { * Enables or disables the remove player buttons * * @param enable - * specifies if the buttons are to be enabled or disabled + * specifies if the buttons are to be enabled or disabled */ - public void enableRemovePlayerButtons(boolean enable); + public void enableRemovePlayerButtons(List<Boolean> enable); /** * Sets the game settings to display * * @param gameSettings - * the settings + * the settings */ public void setGameSettings(GameSettings gameSettings); @@ -203,9 +202,13 @@ public interface ISettingsPanel { public IEvent getSetVariantChildrenEvent(); public IEvent getBackEvent(); - + public void setPlayerTypeChoices(List<List<Type>> choices); + public void setPlayerNamesEditable(List<Boolean> editable); + + public IEvent getOfferGameEvent(); + /** * Specifies the different kinds of settings errors that can be displayed */ |