From 9290db240a10d107801a568e57d742a36052ccc0 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sat, 21 May 2011 16:10:40 +0200 Subject: Nochmal, git ist schwierig git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@258 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockGameSettings.java | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 mock/jrummikub/model/MockGameSettings.java (limited to 'mock/jrummikub') 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 players = new ArrayList(); + 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 getPlayerList() { + return players; + } + + @Override + public void setInitialMeldThreshold(int value) { + initialMeldThreshold = value; + } + + @Override + public int getInitialMeldThreshold() { + return initialMeldThreshold; + } + +} -- cgit v1.2.3