summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-10 11:15:37 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-10 11:15:37 +0100
commita114192ee535dd2a2ff36b94e3c12a101391c66e (patch)
treee998e7f3fb874783259b8ae91205755a754c3677 /core/src/ch/asynk/rustanddust/game
parent412d2e64b153d4691a5b13f194ff9b8c26aa711d (diff)
downloadRustAndDust-a114192ee535dd2a2ff36b94e3c12a101391c66e.zip
RustAndDust-a114192ee535dd2a2ff36b94e3c12a101391c66e.tar.gz
Unit: add public Zone entryZone and exitZone
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java
index 582a1f5..41e392b 100644
--- a/core/src/ch/asynk/rustanddust/game/Unit.java
+++ b/core/src/ch/asynk/rustanddust/game/Unit.java
@@ -66,6 +66,8 @@ public class Unit extends HeadedPawn
public boolean ace;
public boolean hasMoved;
public boolean hasFired;
+ public Zone entryZone;
+ public Zone exitZone;
protected Unit(Army army, AtlasRegion chit, AtlasRegion body, AtlasRegion turret, TextureAtlas overlays)
{
@@ -74,6 +76,8 @@ public class Unit extends HeadedPawn
ace = false;
this. id = unit_id;
unit_id += 1;
+ this.entryZone = null;
+ this.exitZone = null;
}
private void commonSetup()