Start game button in a network game sends an event
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@479 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
4ddf87fc96
commit
bf24a9279a
6 changed files with 116 additions and 33 deletions
|
@ -32,6 +32,8 @@ public class MockConnectionControl implements IConnectionControl {
|
|||
/** */
|
||||
public MockEvent2<String, Color> changeColorEvent = new MockEvent2<String, Color>();
|
||||
/** */
|
||||
public MockEvent gameStartEvent = new MockEvent();
|
||||
/** */
|
||||
public GameData currentGame;
|
||||
/** */
|
||||
public GameData offeredGame;
|
||||
|
@ -104,6 +106,11 @@ public class MockConnectionControl implements IConnectionControl {
|
|||
return changeColorEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEvent getGameStartEvent() {
|
||||
return gameStartEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void offerGame(GameData data) {
|
||||
// TODO Auto-generated method stub
|
||||
|
@ -146,4 +153,10 @@ public class MockConnectionControl implements IConnectionControl {
|
|||
public void changeColor(Color color) {
|
||||
playerColor = color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startGame() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue