summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/view
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/view')
-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;
+ }
}