summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index f6c6c1a..d9ac448 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -15,6 +15,7 @@ public class Unit extends HeadedPawn
enum UnitType
{
HARD_TARGET,
+ HARD_TARGET_HQ,
INFANTRY,
AT_GUN
}
@@ -23,7 +24,6 @@ public class Unit extends HeadedPawn
public int def;
public int cdef;
public int mp;
- public boolean hq;
public UnitType type;
public Army army;
private boolean hasMoved;
@@ -39,7 +39,6 @@ public class Unit extends HeadedPawn
{
super(atlas, unit, head);
this.army = army;
- this.hq = hq;
this.rng = range;
this.def = defense;
this.mp = movementPoints;
@@ -53,7 +52,6 @@ public class Unit extends HeadedPawn
{
super(atlas, unit, head);
this.army = army;
- this.hq = hq;
this.rng = range;
this.def = defense;
this.cdef = concealedDefense;
@@ -103,7 +101,7 @@ public class Unit extends HeadedPawn
@Override
public boolean isHq()
{
- return hq;
+ return (type == UnitType.HARD_TARGET_HQ);
}
@Override