summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-31 18:25:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-31 18:25:47 +0200
commitbc04d21afb9534e3f0aed53045ecc3a30a37bf81 (patch)
tree838c53802638fa06b9ddb9d73a34535abf597da5 /mock/jrummikub
parent03b3bf23401c480602162c0e3f45626e5d9f2e0e (diff)
downloadJRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.tar
JRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.zip
View: Refactor bottom panel display
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@354 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/view/MockView.java27
1 files changed, 4 insertions, 23 deletions
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();
@@ -68,21 +66,11 @@ public class MockView implements IView {
}
@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;
}
}