summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 21:13:59 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 21:13:59 +0200
commit38f6f0dc24bd2755786f8a7947743feadb505b7f (patch)
tree4d8fbf1107dbeeceab0d332d4d5312a691a3ccbe /mock/jrummikub
parent0b66e7d7631a0effca6fb03b8285e0d4372f5eef (diff)
downloadJRummikub-38f6f0dc24bd2755786f8a7947743feadb505b7f.tar
JRummikub-38f6f0dc24bd2755786f8a7947743feadb505b7f.zip
Add some endOfTurn handling to RoundControl
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@155 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/model/MockGameState.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockGameState.java b/mock/jrummikub/model/MockGameState.java
index e6b8622..fd83e55 100644
--- a/mock/jrummikub/model/MockGameState.java
+++ b/mock/jrummikub/model/MockGameState.java
@@ -6,6 +6,7 @@ import java.util.List;
public class MockGameState implements IGameState {
public MockTable table;
+ public ITable setTable;
public List<MockPlayer> players;
public int activePlayer;
public StoneHeap gameHeap;
@@ -56,4 +57,9 @@ public class MockGameState implements IGameState {
public IPlayer getNthNextPlayer(int i) {
return players.get((activePlayer + i) % players.size());
}
+
+ @Override
+ public void setTable(ITable table) {
+ setTable = table;
+ }
}