force ante - three-state boolean behaviour restored

This commit is contained in:
Maxmtg
2013-05-22 15:01:25 +00:00
parent 3206d4b985
commit fb43bc503c
3 changed files with 7 additions and 6 deletions

View File

@@ -68,9 +68,10 @@ public class MatchController {
gameType = type;
}
public MatchController(GameType type, Map<LobbyPlayer, PlayerStartConditions> map, boolean forceAnte) {
public MatchController(GameType type, Map<LobbyPlayer, PlayerStartConditions> map, Boolean forceAnte) {
this(type, map);
this.useAnte |= forceAnte;
if( forceAnte != null )
this.useAnte |= forceAnte.booleanValue();
}
/**

View File

@@ -403,7 +403,7 @@ public class SSubmenuQuestUtil {
int extraLifeHuman = 0;
Integer lifeHuman = null;
boolean useBazaar = true;
boolean forceAnte = false;
Boolean forceAnte = null;
int lifeAI = 20;
if (event instanceof QuestEventChallenge) {
QuestEventChallenge qc = ((QuestEventChallenge) event);

View File

@@ -58,7 +58,7 @@ public class QuestEventChallenge extends QuestEvent {
private boolean repeatable = false;
private boolean useBazaar = true;
private boolean forceAnte = false;
private Boolean forceAnte = false;
/** The wins reqd. */
private int winsReqd = 20;
@@ -289,14 +289,14 @@ public class QuestEventChallenge extends QuestEvent {
/**
* @return the forceAnte
*/
public boolean isForceAnte() {
public Boolean isForceAnte() {
return forceAnte;
}
/**
* @param forceAnte the forceAnte to set
*/
public void setForceAnte(boolean forceAnte) {
public void setForceAnte(Boolean forceAnte) {
this.forceAnte = forceAnte;
}