summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-05 16:41:08 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-05 16:41:08 +0100
commitcc3af93a06f86b60f6f7265f7fca10b46b3fdd7e (patch)
treeccecefcd5276524b01b3d78a84130da0e082bf4f /core/src/ch/asynk/tankontank/game/states
parent6edb6023b2bf9ce6087a2a55281b93e9c515aa7e (diff)
downloadRustAndDust-cc3af93a06f86b60f6f7265f7fca10b46b3fdd7e.zip
RustAndDust-cc3af93a06f86b60f6f7265f7fca10b46b3fdd7e.tar.gz
Pawn: enter/rotate/move/attack -> move() and attack()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java5
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index b3ba2d6..f96678a 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -91,8 +91,9 @@ public class StateMove extends StateCommon
{
hideAssists();
// be sure that the hq is activated
- if (selectedUnit.canMove() && (map.activatedPawns.size() > 0))
- selectedUnit.move(0);
+ if (selectedUnit.canMove() && (map.activatedPawns.size() > 0)) {
+ selectedUnit.move();
+ }
super.done();
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index 3e72a2b..2b63535 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -84,7 +84,7 @@ public class StateRotate extends StateCommon
{
doRotation(o);
if (selectedUnit.canMove() && (map.activatedPawns.size() > 0))
- selectedUnit.move(0);
+ selectedUnit.move();
super.done();
}