summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index 2bc78e3..3d89676 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -24,6 +24,8 @@ public abstract class Pawn extends Image implements Disposable
private StackedImages overlays;
private ArrayDeque<Vector3> path = new ArrayDeque<Vector3>();
+ public abstract int getMvt();
+
public Pawn(TextureRegion region, TextureAtlas atlas)
{
super(region);
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 316f664..4a9741a 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -15,6 +15,9 @@ public class Unit extends Pawn
public boolean ht;
public Army army;
+ @Override
+ public int getMvt() { return mp; }
+
// hard tager
public Unit(Army army, boolean hq, int range, int defense, int movementPoints, TextureRegion region, TextureAtlas atlas)
{