summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/control
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/control')
-rw-r--r--mock/jrummikub/control/network/MockConnectionControl.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/mock/jrummikub/control/network/MockConnectionControl.java b/mock/jrummikub/control/network/MockConnectionControl.java
index 6ecfe75..7d97c78 100644
--- a/mock/jrummikub/control/network/MockConnectionControl.java
+++ b/mock/jrummikub/control/network/MockConnectionControl.java
@@ -39,6 +39,8 @@ public class MockConnectionControl implements IConnectionControl {
public boolean connected;
/** */
public boolean failOnConnect;
+ /** */
+ public GameData joinedGame;
@Override
public String getNickname() {
@@ -112,20 +114,18 @@ public class MockConnectionControl implements IConnectionControl {
@Override
public GameData getCurrentGame() {
- // TODO Auto-generated method stub
- return null;
+ return currentGame;
}
@Override
public void setCurrentGame(GameData game) {
- // TODO Auto-generated method stub
-
+ currentGame = game;
}
@Override
public void joinGame(GameData game) {
- // TODO Auto-generated method stub
-
+ currentGame = game;
+ joinedGame = game;
}
@Override