summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/view
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r--mock/jrummikub/view/MockSettingsPanel.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java
index e029520..2e2663a 100644
--- a/mock/jrummikub/view/MockSettingsPanel.java
+++ b/mock/jrummikub/view/MockSettingsPanel.java
@@ -16,14 +16,18 @@ public class MockSettingsPanel implements ISettingsPanel {
public MockEvent1<Integer> removePlayerEvent = new MockEvent1<Integer>();
public MockEvent2<Integer, Color> changePlayerColorEvent = new MockEvent2<Integer, Color>();
public MockEvent2<Integer, String> changePlayerNameEvent = new MockEvent2<Integer, String>();
- public MockEvent1<Integer> changeInitialMeldThresholdEvent = new MockEvent1<Integer>();
public MockEvent startGameEvent = new MockEvent();
public SettingsError error = SettingsError.NO_ERROR;
public boolean startButtonEnabled = true;
public boolean addPlayerButtonEnabled = true;
public boolean removePlayerButtonsEnabled = false;
public GameSettings gameSettings = new GameSettings();
+
+ public MockEvent1<Integer> changeInitialMeldThresholdEvent = new MockEvent1<Integer>();
+ public IEvent1<Integer> changeJokerNumberEvent = new MockEvent1<Integer>();
+
public int initialMeldThreshold;
+ public int jokerNumber;
@Override
public IEvent getAddPlayerEvent() {
@@ -90,4 +94,14 @@ public class MockSettingsPanel implements ISettingsPanel {
initialMeldThreshold = value;
}
+ @Override
+ public IEvent1<Integer> getChangeJokerNumberEvent() {
+ return changeJokerNumberEvent;
+ }
+
+ @Override
+ public void setJokerNumber(int jokerNumber) {
+ this.jokerNumber = jokerNumber;
+ }
+
}