diff options
Diffstat (limited to 'mock/jrummikub/view/MockHandPanel.java')
-rw-r--r-- | mock/jrummikub/view/MockHandPanel.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/mock/jrummikub/view/MockHandPanel.java b/mock/jrummikub/view/MockHandPanel.java new file mode 100644 index 0000000..4fdd58e --- /dev/null +++ b/mock/jrummikub/view/MockHandPanel.java @@ -0,0 +1,42 @@ +package jrummikub.view; + +import jrummikub.model.Position; +import jrummikub.model.Stone; +import jrummikub.util.Event2; +import jrummikub.util.IEvent1; +import jrummikub.util.IEvent2; +import jrummikub.util.Pair; + +public class MockHandPanel implements IHandPanel { + public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>(); + public Iterable<Pair<Stone, Position>> stones; + + @Override + public IEvent2<Stone, Boolean> getStoneClickEvent() { + return stoneClickEvent; + } + + @Override + public IEvent2<Stone, Boolean> getRangeClickEvent() { + // TODO Auto-generated method stub + return null; + } + + @Override + public IEvent2<Stone, Boolean> getSetClickEvent() { + // TODO Auto-generated method stub + return null; + } + + @Override + public IEvent1<Position> getClickEvent() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setStones(Iterable<Pair<Stone, Position>> stones) { + this.stones = stones; + } + +} |