summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/IView.java
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-31 18:25:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-31 18:25:47 +0200
commitbc04d21afb9534e3f0aed53045ecc3a30a37bf81 (patch)
tree838c53802638fa06b9ddb9d73a34535abf597da5 /src/jrummikub/view/IView.java
parent03b3bf23401c480602162c0e3f45626e5d9f2e0e (diff)
downloadJRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.tar
JRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.zip
View: Refactor bottom panel display
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@354 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/IView.java')
-rw-r--r--src/jrummikub/view/IView.java55
1 files changed, 14 insertions, 41 deletions
diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java
index acfd4ac..41dbdf1 100644
--- a/src/jrummikub/view/IView.java
+++ b/src/jrummikub/view/IView.java
@@ -47,7 +47,7 @@ public interface IView {
* Sets the current player's name
*
* @param playerName
- * the player name
+ * the player name
*/
public void setCurrentPlayerName(String playerName);
@@ -55,19 +55,11 @@ public interface IView {
* Sets the stones that are to be painted selected
*
* @param stones
- * the stones to be painted selected
+ * the stones to be painted selected
*/
public void setSelectedStones(Collection<Stone> stones);
/**
- * Enables or disables the player's StartTurnPanel
- *
- * @param enable
- * enable/disable
- */
- public void enableStartTurnPanel(boolean enable);
-
- /**
* The start turn event is emitted when the player wants to start his turn
*
* @return the event
@@ -75,14 +67,6 @@ public interface IView {
public IEvent getStartTurnEvent();
/**
- * Enables or disables the panel shown when a player has won
- *
- * @param enable
- * enable/disable
- */
- public void enableWinPanel(boolean enable);
-
- /**
* The quit event is emitted when the player wants to quit the game
*
* @return the event
@@ -100,7 +84,7 @@ public interface IView {
* Shows or hides the game settings panel
*
* @param show
- * specifies if the panel shall be shown or hidden
+ * specifies if the panel shall be shown or hidden
*/
public void showSettingsPanel(boolean show);
@@ -108,7 +92,7 @@ public interface IView {
* Shows or hides the score panel
*
* @param show
- * specifies if the panel shall be shown or hidden
+ * specifies if the panel shall be shown or hidden
*/
public void showScorePanel(boolean show);
@@ -117,40 +101,29 @@ public interface IView {
* along with the name
*
* @param color
- * the current player's color
+ * the current player's color
*/
public void setCurrentPlayerColor(Color color);
/**
- * Is used for the PlayerPanel to display if a player has laid out along
- * with the name
+ * Is used for the PlayerPanel to display if a player has laid out along with
+ * the name
*
* @param hasLaidOut
- * specifies if the current player has laid out or not
+ * specifies if the current player has laid out or not
*/
- public void setHasLaidOut(boolean hasLaidOut);
+ public void setCurrentPlayerHasLaidOut(boolean hasLaidOut);
/**
* Is emitted if the player wants to end the game and start a new one
*
* @return newGameEvent
*/
- IEvent getNewGameEvent();
+ public IEvent getNewGameEvent();
- /**
- * Enables or disables most parts of the interface
- *
- * @param enable
- * specifies if the interface is to be enabled or disabled
- */
- void showInterface(boolean enable);
+ public void setBottomPanel(BottomPanelType type);
- /**
- * Enables or disables the panel shown while the computer player is making a
- * move
- *
- * @param b
- * specifies if the interface is enabled or disabled
- */
- public void enableThinkPanel(boolean b);
+ public enum BottomPanelType {
+ START_GAME_PANEL, START_TURN_PANEL, HUMAN_HAND_PANEL, COMPUTER_HAND_PANEL, WIN_PANEL
+ }
}