Fix some mock classes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@172 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
3a2c0638e3
commit
8c45100b99
2 changed files with 9 additions and 12 deletions
|
@ -15,9 +15,9 @@ public class MockTable implements ITable {
|
||||||
public List<Pair<StoneSet, Position>> sets = new ArrayList<Pair<StoneSet, Position>>();
|
public List<Pair<StoneSet, Position>> sets = new ArrayList<Pair<StoneSet, Position>>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void pickUpStone(Stone stone) {
|
public Pair<StoneSet, StoneSet> pickUpStone(Stone stone) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -14,6 +14,8 @@ public class MockTablePanel implements ITablePanel {
|
||||||
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
||||||
public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>();
|
public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>();
|
||||||
public Event2<Stone, Boolean> rangeClickEvent = 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 MockStoneCollectionPanel stoneCollectionPanel = new MockStoneCollectionPanel();
|
||||||
public String leftPlayerName;
|
public String leftPlayerName;
|
||||||
|
@ -24,20 +26,17 @@ public class MockTablePanel implements ITablePanel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IEvent2<Stone, Boolean> getStoneClickEvent() {
|
public IEvent2<Stone, Boolean> getStoneClickEvent() {
|
||||||
// TODO Auto-generated method stub
|
return stoneClickEvent;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IEvent2<Stone, Boolean> getRangeClickEvent() {
|
public IEvent2<Stone, Boolean> getRangeClickEvent() {
|
||||||
// TODO Auto-generated method stub
|
return rangeClickEvent;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IEvent2<Stone, Boolean> getSetClickEvent() {
|
public IEvent2<Stone, Boolean> getSetClickEvent() {
|
||||||
// TODO Auto-generated method stub
|
return setClickEvent;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,14 +72,12 @@ public class MockTablePanel implements ITablePanel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Event1<StoneSet> getLeftConnectorClickEvent() {
|
public Event1<StoneSet> getLeftConnectorClickEvent() {
|
||||||
// TODO Auto-generated method stub
|
return leftConnectorClickEvent;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Event1<StoneSet> getRightConnectorClickEvent() {
|
public Event1<StoneSet> getRightConnectorClickEvent() {
|
||||||
// TODO Auto-generated method stub
|
return rightConnectorClickEvent;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue