From 3b49b2053e9f9d26b73db0ffc8380a60706ee095 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 10 May 2011 03:54:48 +0200 Subject: Added all missing comments git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockHandPanel.java | 8 +++++++- mock/jrummikub/view/MockPlayerPanel.java | 7 +++++++ mock/jrummikub/view/MockStoneCollectionPanel.java | 10 +++++++--- mock/jrummikub/view/MockTablePanel.java | 14 ++++++++++++++ mock/jrummikub/view/MockView.java | 13 ++++++++++++- 5 files changed, 47 insertions(+), 5 deletions(-) (limited to 'mock/jrummikub/view') 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 stoneClickEvent = new Event2(); + /** */ public List> stones; + /** */ public Event2 rangeClickEvent = new Event2(); + /** */ public Event1 clickEvent = new Event1(); @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 stoneClickEvent = new Event2(); - public Event2 setClickEvent = new Event2(); + /** */ + public Event2 stoneClickEvent = new Event2(); + /** */ + public Event2 setClickEvent = new Event2(); @Override public IEvent2 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 stoneClickEvent = new Event2(); + /** */ public Event2 setClickEvent = new Event2(); + /** */ public Event2 rangeClickEvent = new Event2(); + /** */ public Event1 clickEvent = new Event1(); + /** */ public Event1 leftConnectorClickEvent = new Event1(); + /** */ public Event1 rightConnectorClickEvent = new Event1(); + /** */ public MockStoneCollectionPanel stoneCollectionPanel = new MockStoneCollectionPanel(); + /** */ public String leftPlayerName; + /** */ public String topPlayerName; + /** */ public String rightPlayerName; + /** */ public Iterable> 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 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 -- cgit v1.2.3