summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Order.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Order.java b/core/src/ch/asynk/rustanddust/game/Order.java
index fc8925a..9f24f53 100644
--- a/core/src/ch/asynk/rustanddust/game/Order.java
+++ b/core/src/ch/asynk/rustanddust/game/Order.java
@@ -38,6 +38,7 @@ public class Order implements Disposable, Pool.Poolable, Comparable<Unit>
public Unit unit;
public Move move;
public Engagement engagement;
+ public UnitList activable = new UnitList(4);
private Order()
{
@@ -55,6 +56,7 @@ public class Order implements Disposable, Pool.Poolable, Comparable<Unit>
{
this.type = OrderType.NONE;
this.unit = null;
+ this.activable.clear();
if (this.move != null) {
this.move.dispose();
this.move = null;
@@ -103,4 +105,10 @@ public class Order implements Disposable, Pool.Poolable, Comparable<Unit>
this.engagement = Engagement.get(unit, target);
this.unit = unit;
}
+
+ public void setActivable(UnitList l)
+ {
+ for(Unit u : l)
+ activable.add(u);
+ }
}