From 3f3f6370c92a22af54fc2ad633101b74fdd34c67 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Sun, 29 May 2011 18:50:47 +0200 Subject: Added UI for the joker number git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@300 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockSettingsPanel.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'mock/jrummikub/view') 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 removePlayerEvent = new MockEvent1(); public MockEvent2 changePlayerColorEvent = new MockEvent2(); public MockEvent2 changePlayerNameEvent = new MockEvent2(); - public MockEvent1 changeInitialMeldThresholdEvent = new MockEvent1(); 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 changeInitialMeldThresholdEvent = new MockEvent1(); + public IEvent1 changeJokerNumberEvent = new MockEvent1(); + public int initialMeldThreshold; + public int jokerNumber; @Override public IEvent getAddPlayerEvent() { @@ -90,4 +94,14 @@ public class MockSettingsPanel implements ISettingsPanel { initialMeldThreshold = value; } + @Override + public IEvent1 getChangeJokerNumberEvent() { + return changeJokerNumberEvent; + } + + @Override + public void setJokerNumber(int jokerNumber) { + this.jokerNumber = jokerNumber; + } + } -- cgit v1.2.3