Add proper handling for lost server connections

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@581 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-06-22 07:04:15 +02:00
parent d2df76cae4
commit ada8c1869c
8 changed files with 98 additions and 6 deletions

View file

@ -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;
@ -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;