Cleaned up RoundControl tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@260 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
102299d0ff
commit
2446671f7a
10 changed files with 45 additions and 105 deletions
|
@ -1,34 +0,0 @@
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class MockRoundState implements IRoundState {
|
|||
/** */
|
||||
public StoneHeap gameHeap;
|
||||
/** */
|
||||
public IGameSettings gameSettings;
|
||||
public GameSettings gameSettings;
|
||||
|
||||
/** */
|
||||
public MockRoundState() {
|
||||
|
@ -72,7 +72,7 @@ public class MockRoundState implements IRoundState {
|
|||
}
|
||||
|
||||
@Override
|
||||
public IGameSettings getGameSettings() {
|
||||
public GameSettings getGameSettings() {
|
||||
return gameSettings;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue