mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Remove unused player parameter from createPlayer method
This commit is contained in:
parent
557bccd33b
commit
7942c58541
5 changed files with 13 additions and 13 deletions
|
@ -25,9 +25,9 @@ public abstract class CardTestCommander3PlayersFFA extends CardTestPlayerAPIImpl
|
|||
@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);
|
||||
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||
playerC = createPlayer(game, "PlayerC", deckNameC);
|
||||
return game;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ public abstract class CardTestCommanderDuelBase extends CardTestPlayerAPIImpl {
|
|||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||
Game game = new CommanderDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
|
||||
|
||||
playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
|
||||
playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
|
||||
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||
return game;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ public abstract class CardTestOathbreaker3PlayersFFA extends CardTestPlayerAPIIm
|
|||
@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);
|
||||
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||
playerC = createPlayer(game, "PlayerC", deckNameC);
|
||||
return game;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ public abstract class CardTestPlayerBase extends CardTestPlayerAPIImpl {
|
|||
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);
|
||||
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||
return game;
|
||||
}
|
||||
|
||||
|
|
|
@ -253,11 +253,11 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
abstract protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException;
|
||||
|
||||
protected TestPlayer createPlayer(Game game, TestPlayer player, String name) throws GameException {
|
||||
return createPlayer(game, player, name, "RB Aggro.dck");
|
||||
return createPlayer(game, name, "RB Aggro.dck");
|
||||
}
|
||||
|
||||
protected TestPlayer createPlayer(Game game, TestPlayer player, String name, String deckName) throws GameException {
|
||||
player = createNewPlayer(name, game.getRangeOfInfluence());
|
||||
protected TestPlayer createPlayer(Game game, String name, String deckName) throws GameException {
|
||||
TestPlayer player = createNewPlayer(name, game.getRangeOfInfluence());
|
||||
player.setTestMode(true);
|
||||
|
||||
logger.debug("Loading deck...");
|
||||
|
|
Loading…
Reference in a new issue