summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/control/network
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/control/network')
-rw-r--r--mock/jrummikub/control/network/MockConnectionControl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/mock/jrummikub/control/network/MockConnectionControl.java b/mock/jrummikub/control/network/MockConnectionControl.java
index ce8c4e3..faa1303 100644
--- a/mock/jrummikub/control/network/MockConnectionControl.java
+++ b/mock/jrummikub/control/network/MockConnectionControl.java
@@ -54,6 +54,8 @@ public class MockConnectionControl implements IConnectionControl {
/** */
public MockEvent1<String> participantLeftEvent = new MockEvent1<String>();
/** */
+ public MockEvent connectionLostEvent = new MockEvent();
+ /** */
public GameData currentGame;
/** */
public GameData offeredGame;
@@ -178,6 +180,11 @@ public class MockConnectionControl implements IConnectionControl {
}
@Override
+ public IEvent getConnectionLostEvent() {
+ return connectionLostEvent;
+ }
+
+ @Override
public void offerGame(GameData data) {
offeredGame = data;
}