summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Player.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Player.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Player.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java
index 4018307..ab233fe 100644
--- a/core/src/ch/asynk/rustanddust/game/Player.java
+++ b/core/src/ch/asynk/rustanddust/game/Player.java
@@ -133,16 +133,11 @@ public class Player
return ((apSpent < actionPoints) ? (apSpent + 1) : apSpent);
}
- public int getTurnDone()
+ public int getTurn()
{
return turn;
}
- public int getCurrentTurn()
- {
- return (turn + 1);
- }
-
public boolean apExhausted()
{
return (apSpent == actionPoints);
@@ -174,10 +169,7 @@ public class Player
public void turnEnd()
{
- if (deploymentDone)
- turn += 1;
- else
- deploymentDone = (reinforcement.size() == 0);
+ deploymentDone = (reinforcement.size() == 0);
for (Unit unit : units)
unit.reset();
}
@@ -187,6 +179,7 @@ public class Player
if (isDeploymentDone()) {
actionPoints = aps;
apSpent = 0;
+ turn += 1;
}
}