diff options
Diffstat (limited to 'src/jrummikub/view/ISettingsPanel.java')
-rw-r--r-- | src/jrummikub/view/ISettingsPanel.java | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/src/jrummikub/view/ISettingsPanel.java b/src/jrummikub/view/ISettingsPanel.java index c9df7a6..f5577e9 100644 --- a/src/jrummikub/view/ISettingsPanel.java +++ b/src/jrummikub/view/ISettingsPanel.java @@ -40,13 +40,13 @@ public interface ISettingsPanel { * Sets the settings mode according to the point of the game * * @param mode - * settings mode to be set (join, offer, network, default) + * settings mode to be set (join, offer, network, default) */ public void setSettingsMode(SettingsMode mode); /** - * 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 */ @@ -93,8 +93,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 */ @@ -135,7 +135,7 @@ public interface ISettingsPanel { * Sets an error to display * * @param error - * the kind of error + * the kind of error */ public void setError(SettingsError error); @@ -143,7 +143,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); @@ -151,7 +151,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); @@ -159,7 +159,7 @@ 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(List<Boolean> enable); @@ -168,7 +168,7 @@ public interface ISettingsPanel { * Sets the game settings to display * * @param gameSettings - * the settings + * the settings */ public void setGameSettings(GameSettings gameSettings); @@ -218,7 +218,7 @@ public interface ISettingsPanel { * Sets the types of players allowed at the given point in game * * @param choices - * list of types for each player + * list of types for each player */ public void setPlayerTypeChoices(List<List<Type>> choices); @@ -226,13 +226,13 @@ public interface ISettingsPanel { * Sets the names of players editable if allowed at the given point in game * * @param editable - * states if the players name is editable for each player + * states if the players name is editable for each player */ public void setPlayerNamesEditable(List<Boolean> editable); /** - * The offer new game event is emitted when a new game is started and - * looking for players + * The offer new game event is emitted when a new game is started and looking + * for players * * @return the event */ @@ -242,7 +242,7 @@ public interface ISettingsPanel { * Sets the player colors which can be chosen * * @param colors - * a Set of colors which are not taken yet + * a Set of colors which are not taken yet */ public void setPlayerColors(Set<Color> colors); @@ -273,12 +273,15 @@ public interface ISettingsPanel { /** threshold higher 100 */ TOO_HIGH_THRESHOLD_WARNING, /** Only computer players added */ - COMPUTER_PLAYERS_ONLY_WARNING + COMPUTER_PLAYERS_ONLY_WARNING, + + // info + /** no network players have joined */ + WAITING_FOR_PLAYERS } /** - * SettingsPanel can be used with different functions in different - * situations + * SettingsPanel can be used with different functions in different situations */ public enum SettingsMode { /** Local game settings */ |