improved AI targetting

This commit is contained in:
BetaSteward 2011-03-31 23:34:16 -04:00
parent 6ea73a6726
commit aed200bc11
13 changed files with 129 additions and 105 deletions

View file

@ -566,9 +566,9 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
}
@Override
public boolean chooseTarget(Cards cards, TargetCard target, Ability source, Game game) {
public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {
if (targets.size() == 0)
return super.chooseTarget(cards, target, source, game);
return super.chooseTarget(outcome, cards, target, source, game);
if (!target.doneChosing()) {
for (UUID targetId: targets) {
target.addTarget(targetId, source, game);
@ -583,9 +583,9 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
}
@Override
public boolean choose(Cards cards, TargetCard target, Game game) {
public boolean choose(Outcome outcome, Cards cards, TargetCard target, Game game) {
if (targets.size() == 0)
return super.choose(cards, target, game);
return super.choose(outcome, cards, target, game);
if (!target.doneChosing()) {
for (UUID targetId: targets) {
target.add(targetId, game);