From 45656861ab2e618938764f0c46f830184099a71d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 19 Jun 2011 19:46:06 +0200 Subject: 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 --- .../control/network/MockConnectionControl.java | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'mock') 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 tableUpdateEvent = new MockEvent1(); + /** */ + public MockEvent1 turnEndEvent = new MockEvent1(); + /** */ + public MockEvent1 turnStartEvent = new MockEvent1(); + /** */ public GameData currentGame; /** */ public GameData offeredGame; @@ -111,6 +119,21 @@ public class MockConnectionControl implements IConnectionControl { return gameStartEvent; } + @Override + public IEvent1 getTableUpdateEvent() { + return tableUpdateEvent; + } + + @Override + public IEvent1 getTurnEndEvent() { + return turnEndEvent; + } + + @Override + public IEvent1 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 + + } } -- cgit v1.2.3