forked from External/mage
Add mulligan options to NewTableDialog, passing mulligan information to games.
This commit is contained in:
parent
7885a42168
commit
4a232b148c
51 changed files with 532 additions and 364 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue