diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
commit | 3b49b2053e9f9d26b73db0ffc8380a60706ee095 (patch) | |
tree | 9678d5abb4af070bbf0fd89c684e91f5fd472c31 /mock/jrummikub/view | |
parent | 4a860e53cf6f2f97f18785673399498609e6504b (diff) | |
download | JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.tar JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.zip |
Added all missing comments
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r-- | mock/jrummikub/view/MockHandPanel.java | 8 | ||||
-rw-r--r-- | mock/jrummikub/view/MockPlayerPanel.java | 7 | ||||
-rw-r--r-- | mock/jrummikub/view/MockStoneCollectionPanel.java | 10 | ||||
-rw-r--r-- | mock/jrummikub/view/MockTablePanel.java | 14 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 13 |
5 files changed, 47 insertions, 5 deletions
diff --git a/mock/jrummikub/view/MockHandPanel.java b/mock/jrummikub/view/MockHandPanel.java index cb97ef7..299d50a 100644 --- a/mock/jrummikub/view/MockHandPanel.java +++ b/mock/jrummikub/view/MockHandPanel.java @@ -10,11 +10,17 @@ import jrummikub.util.Event2; import jrummikub.util.IEvent1; import jrummikub.util.IEvent2; import jrummikub.util.Pair; - +/** + * Mock class for HandPanel + */ public class MockHandPanel implements IHandPanel { + /** */ public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>(); + /** */ public List<Pair<Stone, Position>> stones; + /** */ public Event2<Stone, Boolean> rangeClickEvent = new Event2<Stone, Boolean>(); + /** */ public Event1<Position> clickEvent = new Event1<Position>(); @Override diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java index 8103c7e..f193fa1 100644 --- a/mock/jrummikub/view/MockPlayerPanel.java +++ b/mock/jrummikub/view/MockPlayerPanel.java @@ -3,10 +3,17 @@ package jrummikub.view; import jrummikub.util.IEvent; import jrummikub.util.MockEvent; +/** + * Mock class for PlayerPanel + */ public class MockPlayerPanel implements IPlayerPanel { + /** */ public MockEvent endTurnEvent = new MockEvent(); + /** */ public MockHandPanel handPanel = new MockHandPanel(); + /** */ public MockEvent sortByGroupsEvent = new MockEvent(); + /** */ public MockEvent sortByRunsEvent = new MockEvent(); @Override diff --git a/mock/jrummikub/view/MockStoneCollectionPanel.java b/mock/jrummikub/view/MockStoneCollectionPanel.java index 70016e5..66eccaa 100644 --- a/mock/jrummikub/view/MockStoneCollectionPanel.java +++ b/mock/jrummikub/view/MockStoneCollectionPanel.java @@ -4,10 +4,14 @@ import jrummikub.model.Stone; import jrummikub.util.Event2; import jrummikub.util.IEvent2; +/** + * Mock class for StoneCollectionPanel + */ public class MockStoneCollectionPanel implements IStoneCollectionPanel { - - public Event2<Stone,Boolean> stoneClickEvent = new Event2<Stone, Boolean>(); - public Event2<Stone,Boolean> setClickEvent = new Event2<Stone, Boolean>(); + /** */ + public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>(); + /** */ + public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>(); @Override public IEvent2<Stone, Boolean> getStoneClickEvent() { diff --git a/mock/jrummikub/view/MockTablePanel.java b/mock/jrummikub/view/MockTablePanel.java index 792b2e7..ca3db6e 100644 --- a/mock/jrummikub/view/MockTablePanel.java +++ b/mock/jrummikub/view/MockTablePanel.java @@ -9,20 +9,34 @@ import jrummikub.util.IEvent1; import jrummikub.util.IEvent2; import jrummikub.util.Pair; +/** + * Mock class for TablePanel + */ 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<Position> clickEvent = new Event1<Position>(); + /** */ public Event1<StoneSet> leftConnectorClickEvent = new Event1<StoneSet>(); + /** */ public Event1<StoneSet> rightConnectorClickEvent = new Event1<StoneSet>(); + /** */ public MockStoneCollectionPanel stoneCollectionPanel = new MockStoneCollectionPanel(); + /** */ public String leftPlayerName; + /** */ public String topPlayerName; + /** */ public String rightPlayerName; + /** */ public Iterable<Pair<StoneSet, Position>> stoneSets; @Override diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 44b6a78..f0337f3 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -5,19 +5,30 @@ import java.util.Collection; import jrummikub.model.Stone; import jrummikub.util.IEvent; import jrummikub.util.MockEvent; - +/** + * Mock class for View + */ public class MockView implements IView { + /** */ public MockPlayerPanel playerPanel = new MockPlayerPanel(); + /** */ public MockTablePanel tablePanel = new MockTablePanel(); + /** */ public Collection<Stone> selectedStones; + /** */ public String currentPlayerName; + /** */ public boolean displayStartTurnPanel = false; + /** */ public boolean displayWinPanel = false; + /** */ public MockEvent startTurnEvent = new MockEvent(); + /** */ public MockEvent quitEvent = new MockEvent(); + /** */ public MockEvent newGameEvent = new MockEvent(); @Override |