Added skip-all-turns-and-actions feature. Bound to F9.

This commit is contained in:
magenoxx 2012-07-18 10:15:50 +04:00
parent 391b1893da
commit ed0af0faee
6 changed files with 38 additions and 8 deletions

View file

@ -371,6 +371,10 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
public boolean priority(Game game) {
passed = false;
if (!abort) {
if (passedAllTurns) {
pass();
return false;
}
if (passedTurn && game.getStack().isEmpty()) {
pass();
return false;
@ -382,6 +386,9 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
pass();
return false;
} else if (response.getInteger() != null) {
if (response.getInteger() == -9999) {
passedAllTurns = true;
}
pass();
passedTurn = true;
return false;