summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-08 18:54:32 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-08 18:54:32 +0200
commit8c45100b9985990685ca60e545fb86e2bd7c2b7c (patch)
tree025606d057ed4be8de485af9e2fd9483993dc2f7 /mock
parent3a2c0638e3671af1449dc32a0488620bcfc204c5 (diff)
downloadJRummikub-8c45100b9985990685ca60e545fb86e2bd7c2b7c.tar
JRummikub-8c45100b9985990685ca60e545fb86e2bd7c2b7c.zip
Fix some mock classes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@172 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/model/MockTable.java4
-rw-r--r--mock/jrummikub/view/MockTablePanel.java17
2 files changed, 9 insertions, 12 deletions
diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java
index 4d7ef1a..0bbbe0a 100644
--- a/mock/jrummikub/model/MockTable.java
+++ b/mock/jrummikub/model/MockTable.java
@@ -15,9 +15,9 @@ public class MockTable implements ITable {
public List<Pair<StoneSet, Position>> sets = new ArrayList<Pair<StoneSet, Position>>();
@Override
- public void pickUpStone(Stone stone) {
+ public Pair<StoneSet, StoneSet> pickUpStone(Stone stone) {
// TODO Auto-generated method stub
-
+ return null;
}
@Override
diff --git a/mock/jrummikub/view/MockTablePanel.java b/mock/jrummikub/view/MockTablePanel.java
index c1d839c..0d8ccae 100644
--- a/mock/jrummikub/view/MockTablePanel.java
+++ b/mock/jrummikub/view/MockTablePanel.java
@@ -14,6 +14,8 @@ public class MockTablePanel implements ITablePanel {
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>();
public Event2<Stone, Boolean> rangeClickEvent = new Event2<Stone, Boolean>();
+ public Event1<StoneSet> leftConnectorClickEvent = new Event1<StoneSet>();
+ public Event1<StoneSet> rightConnectorClickEvent = new Event1<StoneSet>();
public MockStoneCollectionPanel stoneCollectionPanel = new MockStoneCollectionPanel();
public String leftPlayerName;
@@ -24,20 +26,17 @@ public class MockTablePanel implements ITablePanel {
@Override
public IEvent2<Stone, Boolean> getStoneClickEvent() {
- // TODO Auto-generated method stub
- return null;
+ return stoneClickEvent;
}
@Override
public IEvent2<Stone, Boolean> getRangeClickEvent() {
- // TODO Auto-generated method stub
- return null;
+ return rangeClickEvent;
}
@Override
public IEvent2<Stone, Boolean> getSetClickEvent() {
- // TODO Auto-generated method stub
- return null;
+ return setClickEvent;
}
@Override
@@ -73,14 +72,12 @@ public class MockTablePanel implements ITablePanel {
@Override
public Event1<StoneSet> getLeftConnectorClickEvent() {
- // TODO Auto-generated method stub
- return null;
+ return leftConnectorClickEvent;
}
@Override
public Event1<StoneSet> getRightConnectorClickEvent() {
- // TODO Auto-generated method stub
- return null;
+ return rightConnectorClickEvent;
}
}