From 670e4e819859d0927e870ff973ea2dabe5b170a4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 22 Jun 2011 03:48:51 +0200 Subject: GameOfferControl: Handle disappearing players correctly git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@572 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/control/network/MockConnectionControl.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mock') 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 participantLeftEvent = new MockEvent1(); + /** */ public GameData currentGame; /** */ public GameData offeredGame; @@ -170,6 +172,11 @@ public class MockConnectionControl implements IConnectionControl { return nextPlayerEvent; } + @Override + public IEvent1 getParticipantLeftEvent() { + return participantLeftEvent; + } + @Override public void offerGame(GameData data) { offeredGame = data; -- cgit v1.2.3