summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-19 19:46:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-19 19:46:06 +0200
commit45656861ab2e618938764f0c46f830184099a71d (patch)
tree8e5cd9ab28d47f242408d6dcfc29317902048605 /mock
parent9b7aac51f58eb628978ed0e4d1a922a959917a3b (diff)
downloadJRummikub-45656861ab2e618938764f0c46f830184099a71d.tar
JRummikub-45656861ab2e618938764f0c46f830184099a71d.zip
Added NetworkRoundControlTest and started NetworkRoundControl and NetworkTurnControl implementation
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@491 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/control/network/MockConnectionControl.java41
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
+
+ }
}