diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-11 00:02:42 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-11 00:02:42 +0200 |
commit | cc4797fd8b894cc7e02346dc93f891cccb4c0a09 (patch) | |
tree | cfa8d3777d8b07ce488573a80ae04ff5aeed1775 /mock/jrummikub | |
parent | 9c553786f2e0e395149a5ef5e27d24d7d944fe3e (diff) | |
download | JRummikub-cc4797fd8b894cc7e02346dc93f891cccb4c0a09.tar JRummikub-cc4797fd8b894cc7e02346dc93f891cccb4c0a09.zip |
Netzwerk hat Panel mit laufenden Spielen und einem funktionierenden Abbrechen-Button
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@406 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/view/MockGameListPanel.java | 29 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 17 |
2 files changed, 43 insertions, 3 deletions
diff --git a/mock/jrummikub/view/MockGameListPanel.java b/mock/jrummikub/view/MockGameListPanel.java new file mode 100644 index 0000000..feff097 --- /dev/null +++ b/mock/jrummikub/view/MockGameListPanel.java @@ -0,0 +1,29 @@ +package jrummikub.view; + +import jrummikub.util.IEvent; +import jrummikub.util.IEvent1; +import jrummikub.util.MockEvent; +import jrummikub.util.MockEvent1; + +/** */ +public class MockGameListPanel implements IGameListPanel { + public MockEvent1<GameData> joinEvent = new MockEvent1<GameData>(); + public MockEvent openNewGameEvent = new MockEvent(); + public MockEvent cancelEvent = new MockEvent(); + + @Override + public IEvent getOpenNewGameEvent() { + return openNewGameEvent; + } + + @Override + public IEvent getCancelEvent() { + return cancelEvent; + } + + @Override + public IEvent1<GameData> getJoinEvent() { + return joinEvent; + } + +} diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 2b716e2..4f3342d 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -27,11 +27,15 @@ public class MockView implements IView { /** */ public MockLoginPanel loginPanel = new MockLoginPanel(); /** */ + public MockGameListPanel gameListPanel = new MockGameListPanel(); + /** */ public boolean isSettingsPanelVisible = false; /** */ public boolean isScorePanelVisible = false; /** */ public boolean isLoginPanelVisible = false; + /** */ + public boolean isGameListPanelVisible = false; /** */ public Collection<Stone> selectedStones; @@ -127,13 +131,11 @@ public class MockView implements IView { @Override public void setCurrentPlayerColor(Color color) { // TODO Auto-generated method stub - } @Override public void setCurrentPlayerHasLaidOut(boolean hasLaidOut) { // TODO Auto-generated method stub - } @Override @@ -173,7 +175,6 @@ public class MockView implements IView { @Override public void enablePauseMode(boolean enable) { // TODO Auto-generated method stub - } @Override @@ -199,6 +200,16 @@ public class MockView implements IView { @Override public void showLoginPanel(boolean show) { isLoginPanelVisible = show; + } + @Override + public void showGameListPanel(boolean show) { + isGameListPanelVisible = show; } + + @Override + public IGameListPanel getGameListPanel() { + return gameListPanel; + } + } |