diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-24 12:27:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-24 12:27:50 +0200 |
commit | 87bef5fc2936142336272413b9c924b638ae3425 (patch) | |
tree | 71d3986bc767a2ee046ef849b043766d037f7ec3 /core/src/ch/asynk/tankontank | |
parent | ae64c344880b14ecb3984ec23d5f3620d2d09c2c (diff) | |
download | RustAndDust-87bef5fc2936142336272413b9c924b638ae3425.zip RustAndDust-87bef5fc2936142336272413b9c924b638ae3425.tar.gz |
Pawn and Unit: int getMvt()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 3 |
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) { |