mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Refactor: Clean Up Unused Method getPlayerFromName (#9215)
This commit is contained in:
parent
ba558f9a18
commit
87908dc808
1 changed files with 0 additions and 21 deletions
|
@ -293,27 +293,6 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
return createPlayer(playerName, rangeOfInfluence);
|
||||
}
|
||||
|
||||
protected Player getPlayerFromName(String playerName, String line) {
|
||||
Player player = null;
|
||||
switch (playerName) {
|
||||
case "ComputerA":
|
||||
player = currentGame.getPlayer(playerA.getId());
|
||||
break;
|
||||
case "ComputerB":
|
||||
player = currentGame.getPlayer(playerB.getId());
|
||||
break;
|
||||
case "ComputerC":
|
||||
player = currentGame.getPlayer(playerC.getId());
|
||||
break;
|
||||
case "ComputerD":
|
||||
player = currentGame.getPlayer(playerD.getId());
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Wrong player in 'battlefield' line, player=" + player + ", line=" + line);
|
||||
}
|
||||
return player;
|
||||
}
|
||||
|
||||
private void addPlayerAction(TestPlayer player, int turnNum, PhaseStep step, String action) {
|
||||
PlayerAction playerAction = new PlayerAction("", turnNum, step, action);
|
||||
addPlayerAction(player, playerAction);
|
||||
|
|
Loading…
Reference in a new issue