mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +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
|
@Override
|
||||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||||
Game game = new CommanderFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
|
Game game = new CommanderFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
|
||||||
playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
|
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||||
playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
|
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||||
playerC = createPlayer(game, playerC, "PlayerC", deckNameC);
|
playerC = createPlayer(game, "PlayerC", deckNameC);
|
||||||
return game;
|
return game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ public abstract class CardTestCommanderDuelBase extends CardTestPlayerAPIImpl {
|
||||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||||
Game game = new CommanderDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
|
Game game = new CommanderDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 40);
|
||||||
|
|
||||||
playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
|
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||||
playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
|
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||||
return game;
|
return game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,9 @@ public abstract class CardTestOathbreaker3PlayersFFA extends CardTestPlayerAPIIm
|
||||||
@Override
|
@Override
|
||||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||||
Game game = new OathbreakerFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
|
Game game = new OathbreakerFreeForAll(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
|
||||||
playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
|
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||||
playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
|
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||||
playerC = createPlayer(game, playerC, "PlayerC", deckNameC);
|
playerC = createPlayer(game, "PlayerC", deckNameC);
|
||||||
return game;
|
return game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ public abstract class CardTestPlayerBase extends CardTestPlayerAPIImpl {
|
||||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||||
Game game = new TwoPlayerDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
|
Game game = new TwoPlayerDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, MulliganType.GAME_DEFAULT.getMulligan(0), 20);
|
||||||
|
|
||||||
playerA = createPlayer(game, playerA, "PlayerA", deckNameA);
|
playerA = createPlayer(game, "PlayerA", deckNameA);
|
||||||
playerB = createPlayer(game, playerB, "PlayerB", deckNameB);
|
playerB = createPlayer(game, "PlayerB", deckNameB);
|
||||||
return game;
|
return game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -253,11 +253,11 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
||||||
abstract protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException;
|
abstract protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException;
|
||||||
|
|
||||||
protected TestPlayer createPlayer(Game game, TestPlayer player, String name) throws GameException {
|
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 {
|
protected TestPlayer createPlayer(Game game, String name, String deckName) throws GameException {
|
||||||
player = createNewPlayer(name, game.getRangeOfInfluence());
|
TestPlayer player = createNewPlayer(name, game.getRangeOfInfluence());
|
||||||
player.setTestMode(true);
|
player.setTestMode(true);
|
||||||
|
|
||||||
logger.debug("Loading deck...");
|
logger.debug("Loading deck...");
|
||||||
|
|
Loading…
Reference in a new issue