diff options
Diffstat (limited to 'mock/jrummikub/model')
-rw-r--r-- | mock/jrummikub/model/MockRoundState.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mock/jrummikub/model/MockRoundState.java b/mock/jrummikub/model/MockRoundState.java index 1ebc575..bf2f475 100644 --- a/mock/jrummikub/model/MockRoundState.java +++ b/mock/jrummikub/model/MockRoundState.java @@ -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++; + } } |