summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/control/network/MockConnectionControl.java7
-rw-r--r--mock/jrummikub/view/MockView.java11
2 files changed, 16 insertions, 2 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;
}
diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java
index d26432a..1472742 100644
--- a/mock/jrummikub/view/MockView.java
+++ b/mock/jrummikub/view/MockView.java
@@ -79,6 +79,8 @@ public class MockView implements IView {
/** */
public MockEvent acknowledgeInvalidEvent = new MockEvent();
/** */
+ public MockEvent acknowledgeConnectionLostEvent = new MockEvent();
+ /** */
public MockEvent1<File> loadFileEvent = new MockEvent1<File>();
@Override
@@ -117,6 +119,11 @@ public class MockView implements IView {
}
@Override
+ public IEvent getAcknowledgeConnectionLostEvent() {
+ return acknowledgeConnectionLostEvent;
+ }
+
+ @Override
public IEvent getEndProgramEvent() {
return quitEvent;
}
@@ -173,7 +180,7 @@ public class MockView implements IView {
@Override
public void showSidePanel(boolean show) {
- isSidePanelVisible=show;
+ isSidePanelVisible = show;
}
public void showQuitWarningPanel(boolean show) {
@@ -192,7 +199,7 @@ public class MockView implements IView {
@Override
public void showConnectPanel(boolean show) {
- isConnectPanelVisible=show;
+ isConnectPanelVisible = show;
}