diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 00:07:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 00:07:33 +0200 |
commit | e8d5b0eab9963cf9dd644b4709333ef30fcaf310 (patch) | |
tree | 49753dd6d3a417b8a7f1e983f586c5ff081e0e11 /core/src/ch/asynk/tankontank/game/Unit.java | |
parent | 357eddc4a412bb928787ab02f5e0f4c3caf74100 (diff) | |
download | RustAndDust-e8d5b0eab9963cf9dd644b4709333ef30fcaf310.zip RustAndDust-e8d5b0eab9963cf9dd644b4709333ef30fcaf310.tar.gz |
Unit extends HeadedPawn
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/Unit.java')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index d9f0789..d4eaf5b 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -4,9 +4,12 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import ch.asynk.tankontank.engine.Pawn; +import ch.asynk.tankontank.engine.HeadedPawn; -public class Unit extends Pawn +public class Unit extends HeadedPawn { + public static final int DISABLED = 0; + public int rng; public int def; public int cdef; @@ -34,9 +37,9 @@ public class Unit extends Pawn } // hard tager - public Unit(Army army, boolean hq, int range, int defense, int movementPoints, TextureRegion region, TextureAtlas atlas) + public Unit(Army army, boolean hq, int range, int defense, int movementPoints, TextureRegion unit, TextureRegion head, TextureAtlas overlays) { - super(region, atlas); + super(unit, head, overlays); this.army = army; this.hq = hq; this.rng = range; @@ -46,9 +49,9 @@ public class Unit extends Pawn } // soft tager - public Unit(Army army, boolean hq, int range, int defense, int concealedDefense, int movementPoints, TextureRegion region, TextureAtlas atlas) + public Unit(Army army, boolean hq, int range, int defense, int concealedDefense, int movementPoints, TextureRegion unit, TextureRegion head, TextureAtlas overlays) { - super(region, atlas); + super(unit, head, overlays); this.army = army; this.hq = hq; this.rng = range; |