summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/model/MockGameSettings.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockGameSettings.java b/mock/jrummikub/model/MockGameSettings.java
new file mode 100644
index 0000000..83b5fdc
--- /dev/null
+++ b/mock/jrummikub/model/MockGameSettings.java
@@ -0,0 +1,34 @@
+package jrummikub.model;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.awt.Color;
+
+public class MockGameSettings implements IGameSettings {
+ List<PlayerSettings> players = new ArrayList<PlayerSettings>();
+ int initialMeldThreshold;
+
+ public MockGameSettings() {
+ players.add(new PlayerSettings("Bennet", Color.BLUE));
+ players.add(new PlayerSettings("Matze", Color.BLACK));
+ players.add(new PlayerSettings("Ida", Color.RED));
+ players.add(new PlayerSettings("Jannis", Color.PINK));
+ initialMeldThreshold=30;
+ }
+
+ @Override
+ public List<PlayerSettings> getPlayerList() {
+ return players;
+ }
+
+ @Override
+ public void setInitialMeldThreshold(int value) {
+ initialMeldThreshold = value;
+ }
+
+ @Override
+ public int getInitialMeldThreshold() {
+ return initialMeldThreshold;
+ }
+
+}