diff options
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r-- | mock/jrummikub/view/MockLoginPanel.java | 24 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 32 |
2 files changed, 52 insertions, 4 deletions
diff --git a/mock/jrummikub/view/MockLoginPanel.java b/mock/jrummikub/view/MockLoginPanel.java new file mode 100644 index 0000000..dee37ef --- /dev/null +++ b/mock/jrummikub/view/MockLoginPanel.java @@ -0,0 +1,24 @@ +package jrummikub.view; + +import jrummikub.util.IEvent; +import jrummikub.util.IEvent3; +import jrummikub.util.MockEvent; +import jrummikub.util.MockEvent3; +/** */ +public class MockLoginPanel implements ILoginPanel { + /** */ + public MockEvent3<String, String, String> loginEvent = new MockEvent3<String, String, String>(); + /** */ + public MockEvent cancelEvent = new MockEvent(); + + @Override + public IEvent3<String, String, String> getLoginEvent() { + return loginEvent; + } + + @Override + public IEvent getCancelEvent() { + return cancelEvent; + } + +} diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index fd7b896..2b716e2 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -24,6 +24,14 @@ public class MockView implements IView { public MockTablePanel tablePanel = new MockTablePanel(); /** */ public MockHandPanel handPanel = new MockHandPanel(); + /** */ + public MockLoginPanel loginPanel = new MockLoginPanel(); + /** */ + public boolean isSettingsPanelVisible = false; + /** */ + public boolean isScorePanelVisible = false; + /** */ + public boolean isLoginPanelVisible = false; /** */ public Collection<Stone> selectedStones; @@ -53,6 +61,8 @@ public class MockView implements IView { public MockEvent pauseEvent = new MockEvent(); /** */ public MockEvent endPauseEvent = new MockEvent(); + /** */ + public MockEvent networkGameEvent = new MockEvent(); @Override public MockTablePanel getTablePanel() { @@ -101,8 +111,7 @@ public class MockView implements IView { @Override public void showSettingsPanel(boolean show) { - // TODO Auto-generated method stub - + isSettingsPanelVisible = show; } @Override @@ -112,8 +121,7 @@ public class MockView implements IView { @Override public void showScorePanel(boolean show) { - // TODO Auto-generated method stub - + isScorePanelVisible = show; } @Override @@ -177,4 +185,20 @@ public class MockView implements IView { public IEvent getEndPauseEvent() { return endPauseEvent; } + + @Override + public IEvent getNetworkGameEvent() { + return networkGameEvent; + } + + @Override + public ILoginPanel getLoginPanel() { + return loginPanel; + } + + @Override + public void showLoginPanel(boolean show) { + isLoginPanelVisible = show; + + } } |