Move some static player data to a player settings class

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@252 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-05-18 17:01:10 +02:00
parent 5169f31af0
commit b5397d5aa7
8 changed files with 80 additions and 65 deletions

View file

@ -23,13 +23,13 @@ public class RoundStateTest {
public void nextActiveTest() {
// All there?
assertEquals(4, testGame.getPlayerCount());
assertSame(Color.red, testGame.getActivePlayer().getColor());
assertSame(Color.red, testGame.getActivePlayer().getPlayerSettings().getColor());
testGame.nextPlayer();
assertSame(Color.yellow, testGame.getActivePlayer().getColor());
assertSame(Color.yellow, testGame.getActivePlayer().getPlayerSettings().getColor());
testGame.nextPlayer();
testGame.nextPlayer();
testGame.nextPlayer();
assertSame(Color.red, testGame.getActivePlayer().getColor());
assertSame(Color.red, testGame.getActivePlayer().getPlayerSettings().getColor());
}
}