From 1660736239d9f437f0ffa336d3f3bb8ed7ae407f Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 30 May 2011 20:16:48 +0200 Subject: =?UTF-8?q?Man=20kann=20jetzt=20die=20Anzahl=20der=20Steins=C3=A4t?= =?UTF-8?q?ze=20einstellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@328 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockSettingsPanel.java | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'mock') 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 changeInitialMeldThresholdEvent = new MockEvent1(); @@ -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 @@ -121,11 +115,6 @@ public class MockSettingsPanel implements ISettingsPanel { return changeJokerNumberEvent; } - @Override - public void setJokerNumber(int jokerNumber) { - this.jokerNumber = jokerNumber; - } - @Override public IEvent2 getChangePlayerTypeEvent() { return changePlayerTypeEvent; @@ -136,9 +125,4 @@ public class MockSettingsPanel implements ISettingsPanel { return changeStoneSetNumberEvent; } - @Override - public void setStoneSetNumber(int number) { - stoneSetNumber = number; - } - } -- cgit v1.2.3