From bc04d21afb9534e3f0aed53045ecc3a30a37bf81 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 31 May 2011 18:25:47 +0200 Subject: View: Refactor bottom panel display git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@354 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockView.java | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'mock') diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index ccc446f..09f3254 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -28,9 +28,7 @@ public class MockView implements IView { /** */ public String currentPlayerName; /** */ - public boolean displayStartTurnPanel = false; - /** */ - public boolean displayWinPanel = false; + public BottomPanelType bottomPanelType; /** */ public MockEvent startTurnEvent = new MockEvent(); @@ -67,21 +65,11 @@ public class MockView implements IView { selectedStones = stones; } - @Override - public void enableStartTurnPanel(boolean enable) { - displayStartTurnPanel = enable; - } - @Override public IEvent getStartTurnEvent() { return startTurnEvent; } - @Override - public void enableWinPanel(boolean enable) { - displayWinPanel = enable; - } - @Override public IEvent getEndProgramEvent() { return quitEvent; @@ -121,7 +109,7 @@ public class MockView implements IView { } @Override - public void setHasLaidOut(boolean hasLaidOut) { + public void setCurrentPlayerHasLaidOut(boolean hasLaidOut) { // TODO Auto-generated method stub } @@ -132,15 +120,8 @@ public class MockView implements IView { } @Override - public void showInterface(boolean enable) { - // TODO Auto-generated method stub - - } - - @Override - public void enableThinkPanel(boolean b) { - // TODO Auto-generated method stub - + public void setBottomPanel(BottomPanelType type) { + bottomPanelType = type; } } -- cgit v1.2.3