diff options
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/view/MockSettingsPanel.java | 35 |
1 files changed, 34 insertions, 1 deletions
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<Integer> changeJokerNumberEvent = new MockEvent1<Integer>(); /** */ public MockEvent1<Integer> changeStoneSetNumberEvent = new MockEvent1<Integer>(); + /** */ + public MockEvent1<Integer> changeNumberOfStonesDealtEvent = new MockEvent1<Integer>(); + /** */ + public MockEvent1<Integer> changeHighestValueEvent = new MockEvent1<Integer>(); + /** */ + public MockEvent1<Set<StoneColor>> changeStoneColorsEvent = new MockEvent1<Set<StoneColor>>(); /** */ public int initialMeldThreshold; /** */ public int jokerNumber; - + /** */ public int stoneSetNumber; + /** */ + public int numberOfStonesDealt; + /** */ + public int highestValue; + /** */ + public Set<StoneColor> stoneColors; @Override public IEvent getAddPlayerEvent() { @@ -75,6 +90,21 @@ public class MockSettingsPanel implements ISettingsPanel { } @Override + public IEvent1<Integer> getChangeNumberOfStonesDealtEvent() { + return changeNumberOfStonesDealtEvent; + } + + @Override + public IEvent1<Integer> getChangeHighestValueEvent() { + return changeHighestValueEvent; + } + + @Override + public IEvent1<Set<StoneColor>> 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<StoneColor>(gameSettings.getStoneColors()); } @Override |