Attackers sorting, Blocking groups - rule 509.3. Fixed Issue 195.

This commit is contained in:
magenoxx 2011-08-02 21:32:05 +04:00
parent 4627c92d41
commit d33bf20bf0
11 changed files with 209 additions and 43 deletions

View file

@ -469,6 +469,22 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
}
}
@Override
public UUID chooseAttackerOrder(List<Permanent> attackers, Game game) {
while (!abort) {
game.fireSelectTargetEvent(playerId, "Pick attacker", attackers, true);
waitForResponse();
if (response.getUUID() != null) {
for (Permanent perm: attackers) {
if (perm.getId().equals(response.getUUID()))
return perm.getId();
}
}
}
return null;
}
@Override
public UUID chooseBlockerOrder(List<Permanent> blockers, Game game) {
while (!abort) {