mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
ComputerPlayer.#chooseTarget - needs to be implemented.
This commit is contained in:
parent
cf6b5c980a
commit
196f7a32d8
1 changed files with 21 additions and 4 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue