diff options
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/view/MockSettingsPanel.java | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java index a159524..f296286 100644 --- a/mock/jrummikub/view/MockSettingsPanel.java +++ b/mock/jrummikub/view/MockSettingsPanel.java @@ -35,8 +35,6 @@ public class MockSettingsPanel implements ISettingsPanel { public boolean addPlayerButtonEnabled = true; /** */ public boolean removePlayerButtonsEnabled = false; - /** */ - public GameSettings gameSettings = new GameSettings(); /** */ public MockEvent1<Integer> changeInitialMeldThresholdEvent = new MockEvent1<Integer>(); @@ -107,13 +105,9 @@ public class MockSettingsPanel implements ISettingsPanel { @Override public void setGameSettings(GameSettings gameSettings) { - this.gameSettings = gameSettings; - - } - - @Override - public void setInitialMeldThreshold(int value) { - initialMeldThreshold = value; + initialMeldThreshold = gameSettings.getInitialMeldThreshold(); + jokerNumber = gameSettings.getJokerNumber(); + stoneSetNumber = gameSettings.getStoneSetNumber(); } @Override @@ -122,11 +116,6 @@ public class MockSettingsPanel implements ISettingsPanel { } @Override - public void setJokerNumber(int jokerNumber) { - this.jokerNumber = jokerNumber; - } - - @Override public IEvent2<Integer, Type> getChangePlayerTypeEvent() { return changePlayerTypeEvent; } @@ -136,9 +125,4 @@ public class MockSettingsPanel implements ISettingsPanel { return changeStoneSetNumberEvent; } - @Override - public void setStoneSetNumber(int number) { - stoneSetNumber = number; - } - } |