diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/OrderList.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/OrderList.java b/core/src/ch/asynk/rustanddust/game/OrderList.java index 98cc741..7a8e3f3 100644 --- a/core/src/ch/asynk/rustanddust/game/OrderList.java +++ b/core/src/ch/asynk/rustanddust/game/OrderList.java @@ -22,6 +22,15 @@ public class OrderList extends IterableArray<Order> return null; } + public Order getId(int id) + { + for (Order o : this) { + if (o.id == id) + return o; + } + return null; + } + public void dispose(Unit unit) { Iterator<Order> it = iterator(); |