diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-29 18:50:47 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-29 18:50:47 +0200 |
commit | 3f3f6370c92a22af54fc2ad633101b74fdd34c67 (patch) | |
tree | 1bb0905e68cb56950c39c5868687f3e8265b6f81 /mock/jrummikub/view | |
parent | 05107f6035e93d8fe37de0b6beb627b11a05b87b (diff) | |
download | JRummikub-3f3f6370c92a22af54fc2ad633101b74fdd34c67.tar JRummikub-3f3f6370c92a22af54fc2ad633101b74fdd34c67.zip |
Added UI for the joker number
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@300 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r-- | mock/jrummikub/view/MockSettingsPanel.java | 16 |
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; + } + } |