ComputerPlayer.#chooseTarget - needs to be implemented.

This commit is contained in:
magenoxx 2011-03-08 12:07:52 +03:00
parent cf6b5c980a
commit 196f7a32d8

View file

@ -89,10 +89,7 @@ import mage.target.TargetAmount;
import mage.target.TargetCard; import mage.target.TargetCard;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import mage.target.common.TargetCreatureOrPlayer; import mage.target.common.*;
import mage.target.common.TargetDiscard;
import mage.target.common.TargetControlledPermanent;
import mage.target.common.TargetCreatureOrPlayerAmount;
import mage.util.Copier; import mage.util.Copier;
import mage.util.TreeNode; import mage.util.TreeNode;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@ -310,6 +307,26 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
if (!target.isRequired()) if (!target.isRequired())
return false; 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()); throw new IllegalStateException("Target wasn't handled. class:" + target.getClass().toString());
} }