From ada8c1869c5b2b007e690e4c028fd20b34a41706 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 22 Jun 2011 07:04:15 +0200 Subject: Add proper handling for lost server connections git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@581 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/control/network/MockConnectionControl.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mock/jrummikub/control') 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 participantLeftEvent = new MockEvent1(); /** */ + public MockEvent connectionLostEvent = new MockEvent(); + /** */ public GameData currentGame; /** */ public GameData offeredGame; @@ -177,6 +179,11 @@ public class MockConnectionControl implements IConnectionControl { return participantLeftEvent; } + @Override + public IEvent getConnectionLostEvent() { + return connectionLostEvent; + } + @Override public void offerGame(GameData data) { offeredGame = data; -- cgit v1.2.3