mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
Some stylistic fixes for code review
This commit is contained in:
parent
f0b8fd8eec
commit
63382aed93
1 changed files with 7 additions and 2 deletions
|
@ -125,7 +125,9 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isExecutingMacro() {
|
protected boolean isExecutingMacro() {
|
||||||
return !actionQueue.isEmpty() || (actionIterations > 0 && !actionQueueSaved.isEmpty());
|
return !recordingMacro
|
||||||
|
&& (!actionQueue.isEmpty()
|
||||||
|
|| (actionIterations > 0 && !actionQueueSaved.isEmpty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean pullResponseFromQueue(Game game) {
|
protected boolean pullResponseFromQueue(Game game) {
|
||||||
|
@ -152,7 +154,10 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void waitForResponse(Game game) {
|
protected void waitForResponse(Game game) {
|
||||||
if(!recordingMacro && pullResponseFromQueue(game)) return;
|
if (isExecutingMacro()) {
|
||||||
|
pullResponseFromQueue(game);
|
||||||
|
return;
|
||||||
|
}
|
||||||
response.clear();
|
response.clear();
|
||||||
logger.debug("Waiting response from player: " + getId());
|
logger.debug("Waiting response from player: " + getId());
|
||||||
game.resumeTimer(getTurnControlledBy());
|
game.resumeTimer(getTurnControlledBy());
|
||||||
|
|
Loading…
Reference in a new issue