summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mock/jrummikub/view/MockPlayerPanel.java12
-rw-r--r--mock/jrummikub/view/MockSettingsPanel.java7
-rw-r--r--src/jrummikub/view/ISettingsPanel.java2
3 files changed, 14 insertions, 7 deletions
diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java
index fa263c0..2433408 100644
--- a/mock/jrummikub/view/MockPlayerPanel.java
+++ b/mock/jrummikub/view/MockPlayerPanel.java
@@ -22,12 +22,6 @@ public class MockPlayerPanel implements IPlayerPanel {
public TurnMode turnMode;
@Override
- public void setTime(int time) {
- // TODO Auto-generated method stub
-
- }
-
- @Override
public IEvent getSortByGroupsEvent() {
return sortByGroupsEvent;
}
@@ -51,4 +45,10 @@ public class MockPlayerPanel implements IPlayerPanel {
public void setEndTurnMode(TurnMode turnMode) {
this.turnMode = turnMode;
}
+
+ @Override
+ public void setTime(int time, int totalTime) {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java
index 5f69680..9c7debe 100644
--- a/mock/jrummikub/view/MockSettingsPanel.java
+++ b/mock/jrummikub/view/MockSettingsPanel.java
@@ -50,6 +50,8 @@ public class MockSettingsPanel implements ISettingsPanel {
/** */
public MockEvent1<Integer> changeHighestValueEvent = new MockEvent1<Integer>();
/** */
+ public MockEvent1<Integer> changeTimeEvent = new MockEvent1<Integer>();
+ /** */
public MockEvent1<Set<StoneColor>> changeStoneColorsEvent = new MockEvent1<Set<StoneColor>>();
/** */
public int initialMeldThreshold;
@@ -158,4 +160,9 @@ public class MockSettingsPanel implements ISettingsPanel {
return changeStoneSetNumberEvent;
}
+ @Override
+ public IEvent1<Integer> getChangeTimeEvent() {
+ return changeTimeEvent;
+ }
+
}
diff --git a/src/jrummikub/view/ISettingsPanel.java b/src/jrummikub/view/ISettingsPanel.java
index a63b3d1..b7ce6a4 100644
--- a/src/jrummikub/view/ISettingsPanel.java
+++ b/src/jrummikub/view/ISettingsPanel.java
@@ -171,7 +171,7 @@ public interface ISettingsPanel {
*/
public IEvent1<Integer> getChangeJokerNumberEvent();
- public Event1<Integer> getChangeTimeEvent();
+ public IEvent1<Integer> getChangeTimeEvent();
/**
* Specifies the different kinds of settings errors that can be displayed