diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:01:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:01:17 +0100 |
commit | 9b79116e69a318f0cf45f2d69d2f505a8dbb4835 (patch) | |
tree | 87b839144acd2ff28b7e3cce45bdde823a6e2a58 /core/src/ch/asynk/tankontank/game | |
parent | 3c7ddc37001bd45522ff78778ea7fcd12b02e3f6 (diff) | |
download | RustAndDust-9b79116e69a318f0cf45f2d69d2f505a8dbb4835.zip RustAndDust-9b79116e69a318f0cf45f2d69d2f505a8dbb4835.tar.gz |
Move: isEnter(), isSet(), isRegular(), isFinal()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 6105637..a488633 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -286,7 +286,7 @@ public class Unit extends HeadedPawn public boolean canHQMove() { - return (isHq() && ((move == null) || (!move.isEntry()))); + return (isHq() && ((move == null) || (!move.isEnter()))); } public void setMoved() @@ -306,7 +306,7 @@ public class Unit extends HeadedPawn if (cost > mpLeft) TankOnTank.debug("ERROR: Movement point exceeded: " + cost + "/" + mpLeft + " please report"); - if (move.isComplete()) + if (move.isFinal()) setMoved(); mpLeft -= cost; |