diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 12:27:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 12:27:59 +0100 |
commit | 8976e40ae93f06788e19bc8aeef44c63c0445f39 (patch) | |
tree | 3c93d4326939f462f89f9a587817865ad830eaa4 /core/src | |
parent | 57c22d8db44596f5e4699e5449e0e184d36d2730 (diff) | |
download | RustAndDust-8976e40ae93f06788e19bc8aeef44c63c0445f39.zip RustAndDust-8976e40ae93f06788e19bc8aeef44c63c0445f39.tar.gz |
Unit: use common consturctor
Diffstat (limited to 'core/src')
-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 9f8c03b..5670c1b 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -65,7 +65,7 @@ public class Unit extends HeadedPawn // hard tager public Unit(Army army, UnitId id, UnitType type, int range, int defense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays) { - super(army, unit, head, pawns, overlays); + this(army, unit, head, pawns, overlays); this.rng = range; this.def = defense; this.mp = movementPoints; @@ -79,7 +79,7 @@ public class Unit extends HeadedPawn // soft tager public Unit(Army army, UnitId id, UnitType type, int range, int defense, int concealedDefense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays) { - super(army, unit, head, pawns, overlays); + this(army, unit, head, pawns, overlays); this.rng = range; this.def = defense; this.cdef = concealedDefense; |