summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Unit.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-17 13:58:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-18 11:11:05 +0100
commit178fbdbf4ce1e37f4db179a0de14ae19b01923d2 (patch)
treea98b07f30c0fa09935bfca109e968bd2218c16ff /core/src/ch/asynk/rustanddust/game/Unit.java
parentcb81f0a8a194ceebaea880f9027635e6a27df69e (diff)
downloadRustAndDust-178fbdbf4ce1e37f4db179a0de14ae19b01923d2.zip
RustAndDust-178fbdbf4ce1e37f4db179a0de14ae19b01923d2.tar.gz
Game: Factory knows about regions and provide them
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Unit.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java
index 9ccb621..bbb60ef 100644
--- a/core/src/ch/asynk/rustanddust/game/Unit.java
+++ b/core/src/ch/asynk/rustanddust/game/Unit.java
@@ -1,7 +1,7 @@
package ch.asynk.rustanddust.game;
-import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
+import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
import ch.asynk.rustanddust.engine.Pawn;
import ch.asynk.rustanddust.engine.Tile;
@@ -65,9 +65,9 @@ public class Unit extends HeadedPawn
private boolean hasMoved;
private boolean hasFired;
- protected Unit(Army army, String pawn, String head, TextureAtlas pawns, TextureAtlas overlays)
+ protected Unit(Army army, AtlasRegion body, AtlasRegion head, TextureAtlas overlays)
{
- super(army, pawn, head, pawns, overlays);
+ super(army, body, head, overlays);
hq = false;
ace = false;
@@ -90,9 +90,9 @@ public class Unit extends HeadedPawn
this.descr = id.toString() + (hq ? " HQ " : "") + (ace ? " Ace " : "") + " (" + rng + "-" + def + "/" + cdef + "-" + mp + ")";
}
- public Unit(Army army, UnitId id, UnitType type, boolean hq, boolean ace, int range, int defense, int concealedDefense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays)
+ public Unit(Army army, UnitId id, UnitType type, boolean hq, boolean ace, int range, int defense, int concealedDefense, int movementPoints, AtlasRegion body, AtlasRegion head, TextureAtlas overlays)
{
- this(army, unit, head, pawns, overlays);
+ this(army, body, head, overlays);
this.hq = hq;
this.ace = ace;
this.rng = range;