diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Player.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java index de8be76..4018307 100644 --- a/core/src/ch/asynk/rustanddust/game/Player.java +++ b/core/src/ch/asynk/rustanddust/game/Player.java @@ -148,6 +148,17 @@ public class Player return (apSpent == actionPoints); } + public boolean canDoSomething() + { + if (reinforcement() > 0) + return true; + for (Unit unit : units) { + if (unit.canMove() || unit.canEngage() || canPromote(unit)) + return true; + } + return false; + } + public boolean isDeploymentDone() { return (deploymentDone || (reinforcement.size() == 0)); |