From b1fd03e366971ee53d6260b36b8236a996104fd4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 5 May 2011 17:14:34 +0200 Subject: Show player name labels git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@146 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockGameState.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mock/jrummikub/model') 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()); + } } -- cgit v1.2.3