From 196f7a32d8f24e05e0d1c20d8b2b3954d2e2cd14 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Tue, 8 Mar 2011 12:07:52 +0300 Subject: [PATCH] ComputerPlayer.#chooseTarget - needs to be implemented. --- .../java/mage/player/ai/ComputerPlayer.java | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java index 5326ac6958..d9fb5f50cb 100644 --- a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java @@ -89,10 +89,7 @@ import mage.target.TargetAmount; import mage.target.TargetCard; import mage.target.TargetPermanent; import mage.target.TargetPlayer; -import mage.target.common.TargetCreatureOrPlayer; -import mage.target.common.TargetDiscard; -import mage.target.common.TargetControlledPermanent; -import mage.target.common.TargetCreatureOrPlayerAmount; +import mage.target.common.*; import mage.util.Copier; import mage.util.TreeNode; import org.apache.log4j.Logger; @@ -310,6 +307,26 @@ public class ComputerPlayer> extends PlayerImpl i if (!target.isRequired()) return false; } + if (target instanceof TargetCardInGraveyard) { + //TODO: implement + logger.error("Needs to be implemented"); + return false; + } + if (target instanceof TargetCardInHand) { + //TODO: implement + logger.error("Needs to be implemented"); + return false; + } + if (target instanceof TargetCardInLibrary) { + //TODO: implement + logger.error("Needs to be implemented"); + return false; + } + if (target instanceof TargetCardInYourGraveyard) { + //TODO: implement + logger.error("Needs to be implemented"); + return false; + } throw new IllegalStateException("Target wasn't handled. class:" + target.getClass().toString()); }