Implemented most of network settings control
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@425 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
741a94953f
commit
570187c950
12 changed files with 356 additions and 191 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue