mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
* add startHandSize / startLife to the custom option panel * use the custom startLife/startHandsize in all Game Modes
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package mage.game;
|
|
|
|
import mage.constants.MultiplayerAttackOption;
|
|
import mage.constants.PhaseStep;
|
|
import mage.constants.RangeOfInfluence;
|
|
import mage.game.match.MatchType;
|
|
import mage.game.mulligan.Mulligan;
|
|
import mage.game.turn.TurnMod;
|
|
|
|
import java.util.UUID;
|
|
|
|
public class TwoPlayerDuel extends GameImpl {
|
|
|
|
public TwoPlayerDuel(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan,
|
|
int minimumDeckSize, int startLife, int startHandSize) {
|
|
super(attackOption, range, mulligan, minimumDeckSize, startLife, startHandSize);
|
|
}
|
|
|
|
public TwoPlayerDuel(final TwoPlayerDuel game) {
|
|
super(game);
|
|
}
|
|
|
|
@Override
|
|
public MatchType getGameType() {
|
|
return new TwoPlayerDuelType();
|
|
}
|
|
|
|
@Override
|
|
public int getNumPlayers() {
|
|
return 2;
|
|
}
|
|
|
|
@Override
|
|
protected void init(UUID choosingPlayerId) {
|
|
super.init(choosingPlayerId);
|
|
state.getTurnMods().add(new TurnMod(startingPlayerId).withSkipStep(PhaseStep.DRAW));
|
|
}
|
|
|
|
@Override
|
|
public TwoPlayerDuel copy() {
|
|
return new TwoPlayerDuel(this);
|
|
}
|
|
|
|
}
|