diff options
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/control/network/MockConnectionControl.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mock/jrummikub/control/network/MockConnectionControl.java b/mock/jrummikub/control/network/MockConnectionControl.java index 67a9c1a..fbdfb04 100644 --- a/mock/jrummikub/control/network/MockConnectionControl.java +++ b/mock/jrummikub/control/network/MockConnectionControl.java @@ -3,6 +3,8 @@ package jrummikub.control.network; import java.awt.Color; import java.util.UUID; +import jrummikub.model.IRoundState; +import jrummikub.model.ITable; import jrummikub.util.GameData; import jrummikub.util.IEvent; import jrummikub.util.IEvent1; @@ -34,6 +36,12 @@ public class MockConnectionControl implements IConnectionControl { /** */ public MockEvent gameStartEvent = new MockEvent(); /** */ + public MockEvent1<ITable> tableUpdateEvent = new MockEvent1<ITable>(); + /** */ + public MockEvent1<ITable> turnEndEvent = new MockEvent1<ITable>(); + /** */ + public MockEvent1<IRoundState> turnStartEvent = new MockEvent1<IRoundState>(); + /** */ public GameData currentGame; /** */ public GameData offeredGame; @@ -112,6 +120,21 @@ public class MockConnectionControl implements IConnectionControl { } @Override + public IEvent1<ITable> getTableUpdateEvent() { + return tableUpdateEvent; + } + + @Override + public IEvent1<ITable> getTurnEndEvent() { + return turnEndEvent; + } + + @Override + public IEvent1<IRoundState> getTurnStartEvent() { + return turnStartEvent; + } + + @Override public void offerGame(GameData data) { offeredGame = data; } @@ -159,4 +182,22 @@ public class MockConnectionControl implements IConnectionControl { // TODO Auto-generated method stub } + + @Override + public void updateTable(ITable table) { + // TODO Auto-generated method stub + + } + + @Override + public void endTurn(ITable table) { + // TODO Auto-generated method stub + + } + + @Override + public void startTurn(IRoundState state) { + // TODO Auto-generated method stub + + } } |