Search in sources :

Example 81 with Game

use of mage.game.Game in project mage by magefree.

the class CardTestCommander3PlayersFFA method createNewGameAndPlayers.

@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
    Game game = new CommanderFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
    playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
    playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
    playerC = createPlayer(game, playerC, "PlayerC", deckNameC);
    return game;
}
Also used : Game(mage.game.Game) CommanderFreeForAll(mage.game.CommanderFreeForAll)

Example 82 with Game

use of mage.game.Game in project mage by magefree.

the class CardTestOathbreaker3PlayersFFA method createNewGameAndPlayers.

@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
    Game game = new OathbreakerFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
    playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
    playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
    playerC = createPlayer(game, playerC, "PlayerC", deckNameC);
    return game;
}
Also used : Game(mage.game.Game) OathbreakerFreeForAll(mage.game.OathbreakerFreeForAll)

Example 83 with Game

use of mage.game.Game in project mage by magefree.

the class CardTestPlayerBaseAI method createNewGameAndPlayers.

@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
    Game game = new TwoPlayerDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
    playerA = createPlayer(game, playerA, "PlayerA");
    playerB = createPlayer(game, playerB, "PlayerB");
    return game;
}
Also used : Game(mage.game.Game) TwoPlayerDuel(mage.game.TwoPlayerDuel)

Example 84 with Game

use of mage.game.Game in project mage by magefree.

the class CardTestCommander4Players method createNewGameAndPlayers.

@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
    Game game = new CommanderFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ALL, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
    // Player order: A -> D -> C -> B
    playerA = createPlayer(game, playerA, "PlayerA");
    playerB = createPlayer(game, playerB, "PlayerB");
    playerC = createPlayer(game, playerC, "PlayerC");
    playerD = createPlayer(game, playerD, "PlayerD");
    return game;
}
Also used : Game(mage.game.Game) CommanderFreeForAll(mage.game.CommanderFreeForAll)

Example 85 with Game

use of mage.game.Game in project mage by magefree.

the class CardTestPlayerBase method createNewGameAndPlayers.

@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
    Game game = new TwoPlayerDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
    playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
    playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
    return game;
}
Also used : Game(mage.game.Game) TwoPlayerDuel(mage.game.TwoPlayerDuel)

Aggregations

Game (mage.game.Game)212 Ability (mage.abilities.Ability)139 Player (mage.players.Player)126 UUID (java.util.UUID)117 OneShotEffect (mage.abilities.effects.OneShotEffect)104 CardSetInfo (mage.cards.CardSetInfo)102 CardImpl (mage.cards.CardImpl)100 CardType (mage.constants.CardType)82 Outcome (mage.constants.Outcome)78 Permanent (mage.game.permanent.Permanent)66 MageInt (mage.MageInt)60 mage.constants (mage.constants)47 Zone (mage.constants.Zone)46 GameEvent (mage.game.events.GameEvent)44 Objects (java.util.Objects)41 StaticFilters (mage.filter.StaticFilters)40 Collectors (java.util.stream.Collectors)35 SubType (mage.constants.SubType)34 Card (mage.cards.Card)32 MageObjectReference (mage.MageObjectReference)30