summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/view/MockPlayerPanel.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java
index 1a393e8..b69c109 100644
--- a/mock/jrummikub/view/MockPlayerPanel.java
+++ b/mock/jrummikub/view/MockPlayerPanel.java
@@ -1,5 +1,6 @@
package jrummikub.view;
+import jrummikub.control.turn.TurnMode;
import jrummikub.util.IEvent;
import jrummikub.util.MockEvent;
@@ -16,9 +17,7 @@ public class MockPlayerPanel implements IPlayerPanel {
/** */
public MockEvent sortByRunsEvent = new MockEvent();
/** */
- public boolean inspectOnly;
- /** */
- public boolean mayRedeal;
+ public TurnMode turnMode;
@Override
public void setTimeLeft(int time) {
@@ -46,9 +45,9 @@ public class MockPlayerPanel implements IPlayerPanel {
return redealEvent;
}
- public void setEndTurnMode(boolean inspectOnly, boolean mayRedeal) {
- this.inspectOnly = inspectOnly;
- this.mayRedeal = mayRedeal;
+ @Override
+ public void setEndTurnMode(TurnMode turnMode) {
+ this.turnMode = turnMode;
}
}