From 8e24819d8638110a4112f6898bd8d2e527a68db2 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Fri, 10 Jun 2011 16:52:15 +0200 Subject: =?UTF-8?q?Mock=20ist=20wieder=20heile=20und=20es=20gibt=20Tests?= =?UTF-8?q?=20f=C3=BCr=20die=20LoginControl...=20und=20eine=20LoginControl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@397 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockView.java | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'mock/jrummikub/view/MockView.java') 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 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; + + } } -- cgit v1.2.3