Minor farmating changes.

This commit is contained in:
LevelX2 2013-01-09 15:23:47 +01:00
parent db24d6e41d
commit 9fb66bd065

View file

@ -59,9 +59,10 @@ public class Choices extends ArrayList<Choice> {
public List<Choice> getUnchosen() {
List<Choice> unchosen = new ArrayList<Choice>();
for (Choice choice: this) {
if (!choice.isChosen())
if (!choice.isChosen()) {
unchosen.add(choice);
}
}
return unchosen;
}
@ -73,9 +74,10 @@ public class Choices extends ArrayList<Choice> {
public boolean isChosen() {
for (Choice choice: this) {
if (!choice.isChosen())
if (!choice.isChosen()) {
return false;
}
}
return true;
}
@ -84,10 +86,11 @@ public class Choices extends ArrayList<Choice> {
Player player = game.getPlayer(source.getControllerId());
while (!isChosen()) {
Choice choice = this.getUnchosen().get(0);
if (!player.choose(outcome, choice, game))
if (!player.choose(outcome, choice, game)) {
return false;
}
}
}
return true;
}