diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Player.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java index 9ee087a..f81db0e 100644 --- a/core/src/ch/asynk/rustanddust/game/Player.java +++ b/core/src/ch/asynk/rustanddust/game/Player.java @@ -10,7 +10,6 @@ public class Player private int turn; private int apSpent; private int actionPoints; - private boolean deploymentDone; public Army army; public UnitList units; @@ -34,7 +33,6 @@ public class Player this.turn = 0; this.apSpent = 0; this.actionPoints = 0; - this.deploymentDone = false; this.actionCount = 0; this.objectivesWon = 0; this.engagementWon = 0; @@ -76,6 +74,11 @@ public class Player return army.isEnemy(other); } + public boolean hasReinforcement() + { + return (reinforcement() > 0); + } + public int unitsLeft() { return (units.size() + reinforcement.size()); @@ -163,7 +166,7 @@ public class Player public boolean isDeploymentDone() { - return (deploymentDone || (reinforcement.size() == 0)); + return ((turn > 0) || !hasReinforcement()); } public void burnDownOneAp() @@ -176,7 +179,6 @@ public class Player public void turnEnd() { - deploymentDone = (reinforcement.size() == 0); for (Unit unit : units) unit.reset(); } |