forked from External/mage
* Implemented Yorion, Sky Nomad * Implemented Yorion, Sky Nomad (but for real this time) * updated game creation to use the correct deck size for limited
52 lines
1.1 KiB
Java
52 lines
1.1 KiB
Java
|
|
|
|
package mage.game;
|
|
|
|
import java.util.UUID;
|
|
import mage.constants.MultiplayerAttackOption;
|
|
import mage.constants.RangeOfInfluence;
|
|
import mage.game.match.MatchType;
|
|
import mage.game.mulligan.Mulligan;
|
|
|
|
/**
|
|
*
|
|
* @author spjspj
|
|
*/
|
|
public class BrawlFreeForAll extends GameCommanderImpl {
|
|
|
|
private int numPlayers;
|
|
|
|
public BrawlFreeForAll(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan, int startLife) {
|
|
super(attackOption, range, mulligan, startLife, 60);
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|