summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 03:48:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 03:48:51 +0200
commit670e4e819859d0927e870ff973ea2dabe5b170a4 (patch)
tree0667707adf826e0f1016bf5885ebe53fb199cbef /mock
parentd2a96a4503215bc7c3521e12cd90aec250e1df4e (diff)
downloadJRummikub-670e4e819859d0927e870ff973ea2dabe5b170a4.tar
JRummikub-670e4e819859d0927e870ff973ea2dabe5b170a4.zip
GameOfferControl: Handle disappearing players correctly
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@572 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock')
-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 4aec478..ce8c4e3 100644
--- a/mock/jrummikub/control/network/MockConnectionControl.java
+++ b/mock/jrummikub/control/network/MockConnectionControl.java
@@ -52,6 +52,8 @@ public class MockConnectionControl implements IConnectionControl {
/** */
public MockEvent turnStartEvent = new MockEvent();
/** */
+ public MockEvent1<String> participantLeftEvent = new MockEvent1<String>();
+ /** */
public GameData currentGame;
/** */
public GameData offeredGame;
@@ -171,6 +173,11 @@ public class MockConnectionControl implements IConnectionControl {
}
@Override
+ public IEvent1<String> getParticipantLeftEvent() {
+ return participantLeftEvent;
+ }
+
+ @Override
public void offerGame(GameData data) {
offeredGame = data;
}