forked from External/mage
* add startHandSize / startLife to the custom option panel * use the custom startLife/startHandsize in all Game Modes
52 lines
1.2 KiB
Java
52 lines
1.2 KiB
Java
|
|
|
|
package mage.game;
|
|
|
|
import mage.constants.MultiplayerAttackOption;
|
|
import mage.constants.RangeOfInfluence;
|
|
import mage.game.match.MatchType;
|
|
import mage.game.mulligan.Mulligan;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author spjspj
|
|
*/
|
|
public class BrawlFreeForAll extends GameCommanderImpl {
|
|
|
|
private int numPlayers;
|
|
|
|
public BrawlFreeForAll(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan, int startLife, int startHandSize) {
|
|
super(attackOption, range, mulligan, 60, startLife, startHandSize);
|
|
}
|
|
|
|
public BrawlFreeForAll(final BrawlFreeForAll game) {
|
|
super(game);
|
|
this.numPlayers = game.numPlayers;
|
|
}
|
|
|
|
@Override
|
|
protected void init(UUID choosingPlayerId) {
|
|
startingPlayerSkipsDraw = false;
|
|
super.init(choosingPlayerId);
|
|
}
|
|
|
|
@Override
|
|
public MatchType getGameType() {
|
|
return new BrawlFreeForAllType();
|
|
}
|
|
|
|
@Override
|
|
public int getNumPlayers() {
|
|
return numPlayers;
|
|
}
|
|
|
|
public void setNumPlayers(int numPlayers) {
|
|
this.numPlayers = numPlayers;
|
|
}
|
|
|
|
@Override
|
|
public BrawlFreeForAll copy() {
|
|
return new BrawlFreeForAll(this);
|
|
}
|
|
}
|