summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 17:14:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 17:14:34 +0200
commitb1fd03e366971ee53d6260b36b8236a996104fd4 (patch)
tree12440541066c7ae4f88fad2971bed7fb8a4a1f4c /mock/jrummikub
parent63ffedd7b0ecfbf690551b0e2fefac3058ff08c2 (diff)
downloadJRummikub-b1fd03e366971ee53d6260b36b8236a996104fd4.tar
JRummikub-b1fd03e366971ee53d6260b36b8236a996104fd4.zip
Show player name labels
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@146 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/model/MockGameState.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockGameState.java b/mock/jrummikub/model/MockGameState.java
index 1d4a7a2..e6b8622 100644
--- a/mock/jrummikub/model/MockGameState.java
+++ b/mock/jrummikub/model/MockGameState.java
@@ -51,4 +51,9 @@ public class MockGameState implements IGameState {
public StoneHeap getGameHeap() {
return gameHeap;
}
+
+ @Override
+ public IPlayer getNthNextPlayer(int i) {
+ return players.get((activePlayer + i) % players.size());
+ }
}