From c004a07a4267f3320d23f3d1d2cf483cd56f40b7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 31 May 2011 01:50:56 +0200 Subject: Make highest value and number of stones dealt settable git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@337 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockSettingsPanel.java | 35 +++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'mock/jrummikub') diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java index f296286..5f69680 100644 --- a/mock/jrummikub/view/MockSettingsPanel.java +++ b/mock/jrummikub/view/MockSettingsPanel.java @@ -1,10 +1,13 @@ package jrummikub.view; import java.awt.Color; +import java.util.HashSet; +import java.util.Set; import jrummikub.control.turn.TurnControlFactory; import jrummikub.control.turn.TurnControlFactory.Type; import jrummikub.model.GameSettings; +import jrummikub.model.StoneColor; import jrummikub.util.IEvent; import jrummikub.util.IEvent1; import jrummikub.util.IEvent2; @@ -42,12 +45,24 @@ public class MockSettingsPanel implements ISettingsPanel { public MockEvent1 changeJokerNumberEvent = new MockEvent1(); /** */ public MockEvent1 changeStoneSetNumberEvent = new MockEvent1(); + /** */ + public MockEvent1 changeNumberOfStonesDealtEvent = new MockEvent1(); + /** */ + public MockEvent1 changeHighestValueEvent = new MockEvent1(); + /** */ + public MockEvent1> changeStoneColorsEvent = new MockEvent1>(); /** */ public int initialMeldThreshold; /** */ public int jokerNumber; - + /** */ public int stoneSetNumber; + /** */ + public int numberOfStonesDealt; + /** */ + public int highestValue; + /** */ + public Set stoneColors; @Override public IEvent getAddPlayerEvent() { @@ -74,6 +89,21 @@ public class MockSettingsPanel implements ISettingsPanel { return changeInitialMeldThresholdEvent; } + @Override + public IEvent1 getChangeNumberOfStonesDealtEvent() { + return changeNumberOfStonesDealtEvent; + } + + @Override + public IEvent1 getChangeHighestValueEvent() { + return changeHighestValueEvent; + } + + @Override + public IEvent1> getChangeStoneColorsEvent() { + return changeStoneColorsEvent; + } + @Override public IEvent getStartGameEvent() { return startGameEvent; @@ -108,6 +138,9 @@ public class MockSettingsPanel implements ISettingsPanel { initialMeldThreshold = gameSettings.getInitialMeldThreshold(); jokerNumber = gameSettings.getJokerNumber(); stoneSetNumber = gameSettings.getStoneSetNumber(); + numberOfStonesDealt = gameSettings.getNumberOfStonesDealt(); + highestValue = gameSettings.getHighestValue(); + stoneColors = new HashSet(gameSettings.getStoneColors()); } @Override -- cgit v1.2.3