diff options
author | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 |
commit | 260589abf40d3a0d02c5c472467858cc4c151e6a (patch) | |
tree | 86a96732d89a3a373aa846617fb0ea7f4a334800 /src/List.cpp | |
parent | 0fb714b1a642361eebadf7d74333c20f861354d2 (diff) |
Diffstat (limited to 'src/List.cpp')
-rw-r--r-- | src/List.cpp | 6 |
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); +} |