mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
* Implemented Yorion, Sky Nomad * Implemented Yorion, Sky Nomad (but for real this time) * updated game creation to use the correct deck size for limited
47 lines
1.2 KiB
Java
47 lines
1.2 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 startLife) {
|
|
this(attackOption, range, mulligan, startLife, 60);
|
|
}
|
|
|
|
public TwoPlayerDuel(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan, int startLife, int startingSize) {
|
|
super(attackOption, range, mulligan, startLife, startingSize);
|
|
}
|
|
|
|
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, PhaseStep.DRAW));
|
|
}
|
|
|
|
@Override
|
|
public TwoPlayerDuel copy() {
|
|
return new TwoPlayerDuel(this);
|
|
}
|
|
|
|
}
|