summaryrefslogtreecommitdiff
path: root/src/List.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-22 19:41:09 -0600
committertom <tom@ground-control>2015-11-22 19:41:09 -0600
commit84d63287c4d052052c9975714bbc253b18d28920 (patch)
tree5c11d0d8cbffc9d595133caf63878c3d7c3416f3 /src/List.cpp
parent9f0de11816fdbd0981aeaa3a840e3942fd249eb4 (diff)
removed occupied, just used men vector
Diffstat (limited to 'src/List.cpp')
-rw-r--r--src/List.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/List.cpp b/src/List.cpp
index ed09c5a..05a6f66 100644
--- a/src/List.cpp
+++ b/src/List.cpp
@@ -8,8 +8,7 @@ List::List()
L.x = 150;
L.y = 150+i;
Character x ('@',4,L);
- men.push_back(x);
- occupied.push_back(x.getLocation());
+ men.push_back(x);
}
}
@@ -22,9 +21,5 @@ void List::draw(WINDOW * w)
void List::action()
{
for(int i = 0; i < 10; i++)
- {
- Location L = men[i].action(occupied);
- if (L.x != 0 && L.y != 0)
- occupied[i]=L;
- }
+ men[i].action(men);
}