summaryrefslogtreecommitdiff
path: root/src/List.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-25 16:05:41 -0600
committertom <tom@ground-control>2015-11-25 16:05:41 -0600
commit260589abf40d3a0d02c5c472467858cc4c151e6a (patch)
tree86a96732d89a3a373aa846617fb0ea7f4a334800 /src/List.cpp
parent0fb714b1a642361eebadf7d74333c20f861354d2 (diff)
allowed movement ordersHEADmaster
Diffstat (limited to 'src/List.cpp')
-rw-r--r--src/List.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/List.cpp b/src/List.cpp
index bd0f5d4..86049a3 100644
--- a/src/List.cpp
+++ b/src/List.cpp
@@ -24,3 +24,9 @@ void List::action()
for(int i = 0; i < men.size(); i++)
men[i].action(men,impassable);
}
+
+void List::order(Location l)
+{
+ for(int i = 0; i < men.size(); i++)
+ men[i].giveOrder(l);
+}