mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
fix to previous one
This commit is contained in:
@@ -29,8 +29,6 @@ import forge.game.ai.AiController;
|
||||
* @version $Id$
|
||||
*/
|
||||
public class AIPlayer extends Player {
|
||||
|
||||
private final PlayerControllerAi controller;
|
||||
/**
|
||||
* <p>
|
||||
* Constructor for AIPlayer.
|
||||
@@ -46,7 +44,7 @@ public class AIPlayer extends Player {
|
||||
}
|
||||
|
||||
public AiController getAi() {
|
||||
return controller.getAi();
|
||||
return controller instanceof PlayerControllerAi ? ((PlayerControllerAi) controller).getAi() : null;
|
||||
}
|
||||
|
||||
} // end AIPlayer class
|
||||
|
||||
@@ -39,8 +39,6 @@ import forge.game.GameActionUtil;
|
||||
import forge.game.GameState;
|
||||
|
||||
public class HumanPlayer extends Player {
|
||||
private final PlayerControllerHuman controller;
|
||||
|
||||
public HumanPlayer(final LobbyPlayerHuman player, GameState game) {
|
||||
super(player, game);
|
||||
controller = new PlayerControllerHuman(game, this);
|
||||
|
||||
@@ -158,7 +158,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
private Card currentPlane = null;
|
||||
|
||||
private PlayerStatistics stats = new PlayerStatistics();
|
||||
private PlayerController controller;
|
||||
protected PlayerController controller;
|
||||
private final LobbyPlayer lobbyPlayer;
|
||||
|
||||
private final List<Card> schemeDeck = new ArrayList<Card>();
|
||||
|
||||
Reference in New Issue
Block a user