Calculate points on hand
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@264 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
92d1109954
commit
4a98975b0d
10 changed files with 88 additions and 15 deletions
|
@ -76,4 +76,10 @@ public class MockHand implements IHand {
|
|||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStonePoints() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ public class MockPlayer implements IPlayer {
|
|||
* @param playerSettings
|
||||
* the player settings
|
||||
*/
|
||||
public MockPlayer(PlayerSettings playerSettings) {
|
||||
hand = new Hand();
|
||||
public MockPlayer(PlayerSettings playerSettings, GameSettings gameSettings) {
|
||||
hand = new Hand(gameSettings);
|
||||
this.playerSettings = playerSettings;
|
||||
laidOut = false;
|
||||
}
|
||||
|
|
|
@ -22,15 +22,19 @@ public class MockRoundState implements IRoundState {
|
|||
public GameSettings gameSettings;
|
||||
/** */
|
||||
public IPlayer lastPlayer;
|
||||
|
||||
|
||||
/** */
|
||||
public MockRoundState() {
|
||||
table = new MockTable();
|
||||
players = new ArrayList<MockPlayer>();
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 1", Color.RED)));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 2", Color.YELLOW)));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 3", Color.GREEN)));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 4", Color.BLACK)));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 1", Color.RED),
|
||||
gameSettings));
|
||||
players.add(new MockPlayer(
|
||||
new PlayerSettings("Player 2", Color.YELLOW), gameSettings));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 3", Color.GREEN),
|
||||
gameSettings));
|
||||
players.add(new MockPlayer(new PlayerSettings("Player 4", Color.BLACK),
|
||||
gameSettings));
|
||||
activePlayer = 0;
|
||||
gameHeap = new StoneHeap();
|
||||
gameSettings = new GameSettings();
|
||||
|
|
Reference in a new issue