summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/model/MockRoundState.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockRoundState.java b/mock/jrummikub/model/MockRoundState.java
index 32fce33..0341f27 100644
--- a/mock/jrummikub/model/MockRoundState.java
+++ b/mock/jrummikub/model/MockRoundState.java
@@ -91,4 +91,13 @@ public class MockRoundState implements IRoundState {
public void setLastPlayer(IPlayer lastPlayer) {
this.lastPlayer = lastPlayer;
}
+
+ @Override
+ public void setActivePlayerNumber(int i) {
+ int j = i % players.size();
+ if (j < 0) {
+ j += players.size();
+ }
+ activePlayer = j;
+ }
}