From 260589abf40d3a0d02c5c472467858cc4c151e6a Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 25 Nov 2015 16:05:41 -0600 Subject: allowed movement orders --- src/List.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/List.cpp') 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); +} -- cgit v1.2.3