From 570187c95000afd1ac9f6d6e8bb5cab30b984e87 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 13 Jun 2011 22:29:28 +0200 Subject: Implemented most of network settings control git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@425 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockSettingsPanel.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'mock/jrummikub/view') diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java index 880d74c..2f79178 100644 --- a/mock/jrummikub/view/MockSettingsPanel.java +++ b/mock/jrummikub/view/MockSettingsPanel.java @@ -1,6 +1,7 @@ package jrummikub.view; import java.awt.Color; +import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -31,6 +32,8 @@ public class MockSettingsPanel implements ISettingsPanel { /** */ public MockEvent startGameEvent = new MockEvent(); /** */ + public MockEvent offerGameEvent = new MockEvent(); + /** */ public MockEvent networkGameEvent = new MockEvent(); /** */ public SettingsError error = SettingsError.NO_ERROR; @@ -39,7 +42,7 @@ public class MockSettingsPanel implements ISettingsPanel { /** */ public boolean addPlayerButtonEnabled = true; /** */ - public boolean removePlayerButtonsEnabled = false; + public List removePlayerButtonsEnabled = Collections.emptyList(); /** */ public MockEvent setVariantDefaultEvent = new MockEvent(); @@ -139,7 +142,7 @@ public class MockSettingsPanel implements ISettingsPanel { } @Override - public void enableRemovePlayerButtons(boolean enable) { + public void enableRemovePlayerButtons(List enable) { removePlayerButtonsEnabled = enable; } @@ -205,4 +208,15 @@ public class MockSettingsPanel implements ISettingsPanel { // TODO Auto-generated method stub } + + @Override + public void setPlayerNamesEditable(List editable) { + // TODO Auto-generated method stub + + } + + @Override + public IEvent getOfferGameEvent() { + return offerGameEvent; + } } -- cgit v1.2.3