summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl/View.java
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 03:08:37 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 03:08:37 +0200
commitd6c4da62243310b85a82e73e55249de9af7fdb11 (patch)
treeecdb215533c41a9d6f02c0770ea76a38f8b4867b /src/jrummikub/view/impl/View.java
parent62a55c0a918b1d91338a68ee89211006e11785bf (diff)
downloadJRummikub-d6c4da62243310b85a82e73e55249de9af7fdb11.tar
JRummikub-d6c4da62243310b85a82e73e55249de9af7fdb11.zip
Show in start turn panel if a player has redealed or drawn the last stone
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@570 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl/View.java')
-rw-r--r--src/jrummikub/view/impl/View.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index fe2c1eb..4940999 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -582,6 +582,16 @@ public class View extends JFrame implements IView {
}
@Override
+ public void setRedealedPlayerName(String name) {
+ startTurnPanel.setRedealedPlayerName(name);
+ }
+
+ @Override
+ public void setLastStonePlayerName(String name) {
+ startTurnPanel.setLastStonePlayerName(name);
+ }
+
+ @Override
public void setCurrentPlayerHasLaidOut(boolean hasLaidOut) {
playerPanel.setHasLaidOut(hasLaidOut);
}
@@ -657,7 +667,9 @@ public class View extends JFrame implements IView {
}
private void doSetBottomPanel(BottomPanelType type) {
- boolean showStartTurnPanel = (type == BottomPanelType.START_TURN_PANEL || type == BottomPanelType.INVALID_TURN_PANEL);
+ boolean showStartTurnPanel = (type == BottomPanelType.START_TURN_PANEL
+ || type == BottomPanelType.START_REDEAL_TURN_PANEL
+ || type == BottomPanelType.START_LAST_TURN_PANEL || type == BottomPanelType.INVALID_TURN_PANEL);
startTurnPanel.setType(type);
startTurnPanel.setVisible(showStartTurnPanel);