Add mulligan options to NewTableDialog, passing mulligan information to games.

This commit is contained in:
John Hitchings 2019-03-19 06:00:22 -07:00
parent 7885a42168
commit 4a232b148c
51 changed files with 532 additions and 364 deletions

View file

@ -5,6 +5,7 @@ import mage.constants.MatchTimeLimit;
import mage.constants.MultiplayerAttackOption;
import mage.constants.RangeOfInfluence;
import mage.constants.SkillLevel;
import mage.game.mulligan.MulliganType;
import mage.game.result.ResultProtos;
import mage.players.PlayerType;
@ -47,6 +48,7 @@ public class MatchOptions implements Serializable {
* Time each player has during the game to play using his\her priority.
*/
protected MatchTimeLimit matchTimeLimit; // 0 = no priorityTime handling
protected MulliganType mulliganType;
/*public MatchOptions(String name, String gameType) {
this.name = name;
@ -257,4 +259,16 @@ public class MatchOptions implements Serializable {
return builder.build();
}
public void setMullgianType(MulliganType mulliganType) {
this.mulliganType = mulliganType;
}
public MulliganType getMulliganType() {
if (mulliganType == null) {
return MulliganType.GAME_DEFAULT;
}
return mulliganType;
}
}