summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-13 22:29:28 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-13 22:29:28 +0200
commit570187c95000afd1ac9f6d6e8bb5cab30b984e87 (patch)
treecd6ed34d64da7621545d66c9f1126c723645b58f /mock/jrummikub
parent741a94953f2d4667de564d8ade37e68a04442fe0 (diff)
downloadJRummikub-570187c95000afd1ac9f6d6e8bb5cab30b984e87.tar
JRummikub-570187c95000afd1ac9f6d6e8bb5cab30b984e87.zip
Implemented most of network settings control
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@425 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/view/MockSettingsPanel.java18
1 files changed, 16 insertions, 2 deletions
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<Boolean> 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<Boolean> enable) {
removePlayerButtonsEnabled = enable;
}
@@ -205,4 +208,15 @@ public class MockSettingsPanel implements ISettingsPanel {
// TODO Auto-generated method stub
}
+
+ @Override
+ public void setPlayerNamesEditable(List<Boolean> editable) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IEvent getOfferGameEvent() {
+ return offerGameEvent;
+ }
}