GameOfferControl: Handle disappearing players correctly
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@572 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
d2a96a4503
commit
670e4e8198
4 changed files with 127 additions and 40 deletions
|
@ -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;
|
||||
|
@ -170,6 +172,11 @@ public class MockConnectionControl implements IConnectionControl {
|
|||
return nextPlayerEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEvent1<String> getParticipantLeftEvent() {
|
||||
return participantLeftEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void offerGame(GameData data) {
|
||||
offeredGame = data;
|
||||
|
|
Reference in a new issue