diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-16 22:09:56 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-16 22:09:56 +0200 |
commit | a4f5beb00598f577598a0e39e4e1099d9ea6e1e6 (patch) | |
tree | c83ad081123ae493ad7945a30a10dab92a344f3f /mock/jrummikub/view | |
parent | 604ef91282ad234130b1d46569efd486ab6c5024 (diff) | |
download | JRummikub-a4f5beb00598f577598a0e39e4e1099d9ea6e1e6.tar JRummikub-a4f5beb00598f577598a0e39e4e1099d9ea6e1e6.zip |
Move getHandPanel from IPlayerPanel to IView
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@245 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r-- | mock/jrummikub/view/MockPlayerPanel.java | 8 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java index f193fa1..13dbb57 100644 --- a/mock/jrummikub/view/MockPlayerPanel.java +++ b/mock/jrummikub/view/MockPlayerPanel.java @@ -10,19 +10,11 @@ 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 - public IHandPanel getHandPanel() { - // TODO Auto-generated method stub - return handPanel; - } - - @Override public void setTimeLeft(int time) { // TODO Auto-generated method stub diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index f0337f3..1f8c9a8 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -5,6 +5,7 @@ import java.util.Collection; import jrummikub.model.Stone; import jrummikub.util.IEvent; import jrummikub.util.MockEvent; + /** * Mock class for View */ @@ -13,6 +14,8 @@ public class MockView implements IView { public MockPlayerPanel playerPanel = new MockPlayerPanel(); /** */ public MockTablePanel tablePanel = new MockTablePanel(); + /** */ + public MockHandPanel handPanel = new MockHandPanel(); /** */ public Collection<Stone> selectedStones; @@ -42,6 +45,11 @@ public class MockView implements IView { } @Override + public MockHandPanel getHandPanel() { + return handPanel; + } + + @Override public void setCurrentPlayerName(String playerName) { currentPlayerName = playerName; } |