summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Order.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Order.java')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Order.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Order.java b/core/src/ch/asynk/rustanddust/game/Order.java
index e57aa2e..fc8925a 100644
--- a/core/src/ch/asynk/rustanddust/game/Order.java
+++ b/core/src/ch/asynk/rustanddust/game/Order.java
@@ -36,9 +36,6 @@ public class Order implements Disposable, Pool.Poolable, Comparable<Unit>
public OrderType type;
public Unit unit;
- public Unit.UnitCode unitCode;
- public Unit.UnitType unitType;
- public Hex unitHex;
public Move move;
public Engagement engagement;
@@ -91,27 +88,19 @@ public class Order implements Disposable, Pool.Poolable, Comparable<Unit>
{
this.type = OrderType.MOVE;
this.move = move;
- setUnit(unit);
+ this.unit = unit;
}
public void setPromote(Unit unit)
{
this.type = OrderType.PROMOTE;
- setUnit(unit);
+ this.unit = unit;
}
public void setEngage(Unit unit, Unit target)
{
this.type = OrderType.ENGAGE;
this.engagement = Engagement.get(unit, target);
- setUnit(unit);
- }
-
- private void setUnit(Unit unit)
- {
this.unit = unit;
- this.unitCode = unit.code;
- this.unitType = unit.type;
- this.unitHex = unit.getHex();
}
}