Added test and implementation for an inspection turn before the first

turn

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@273 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-05-25 17:10:43 +02:00
parent 157bd4f606
commit a1c0cb89f6
7 changed files with 140 additions and 19 deletions

View file

@ -22,8 +22,10 @@ public class MockRoundState implements IRoundState {
public GameSettings gameSettings;
/** */
public IPlayer lastPlayer;
/** */
public int turnNumber;
/** */
public MockRoundState() {
table = new MockTable();
players = new ArrayList<MockPlayer>();
@ -39,6 +41,7 @@ public class MockRoundState implements IRoundState {
gameHeap = new StoneHeap();
gameSettings = new GameSettings();
gameSettings.setInitialMeldThreshold(30);
turnNumber = -3;
}
@Override
@ -113,4 +116,13 @@ public class MockRoundState implements IRoundState {
}
return players.get(j);
}
public int getTurnNumber() {
return turnNumber;
}
@Override
public void nextTurn() {
turnNumber++;
}
}