summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-27 18:55:17 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-27 18:55:17 +0200
commitffeefad2579232c6057b383d75a9df4517f83aa6 (patch)
tree1ff7ddb95e5acaa56855482c7025dce92d127fac /src
parent2d198820a9634c30d62c77f6f310aa227ee29733 (diff)
downloadJRummikub-ffeefad2579232c6057b383d75a9df4517f83aa6.tar
JRummikub-ffeefad2579232c6057b383d75a9df4517f83aa6.zip
Added round control tests for checking whether redealing is allowed
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@289 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/view/IPlayerPanel.java11
-rw-r--r--src/jrummikub/view/impl/PlayerPanel.java1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/jrummikub/view/IPlayerPanel.java b/src/jrummikub/view/IPlayerPanel.java
index 03f04cd..0181a9e 100644
--- a/src/jrummikub/view/IPlayerPanel.java
+++ b/src/jrummikub/view/IPlayerPanel.java
@@ -43,4 +43,15 @@ public interface IPlayerPanel {
* @return the event
*/
public IEvent getRedealEvent();
+
+ /**
+ * Sets the buttons available to end the turn
+ *
+ * @param inspectOnly
+ * true for each player's first turn
+ * @param mayRedeal
+ * true if the player is allowed to trigger a redealing of all
+ * stones
+ */
+ public abstract void setEndTurnMode(boolean inspectOnly, boolean mayRedeal);
}
diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java
index db2721a..4dd38d6 100644
--- a/src/jrummikub/view/impl/PlayerPanel.java
+++ b/src/jrummikub/view/impl/PlayerPanel.java
@@ -320,6 +320,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel {
}
}
+ @Override
public void setEndTurnMode(boolean inspectOnly, boolean mayRedeal) {
if (!inspectOnly) {
endTurnButton.setText("Zug beenden");