summaryrefslogtreecommitdiff
path: root/src/List.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-19 17:38:17 -0600
committertom <tom@ground-control>2015-11-19 17:38:17 -0600
commitb4bf156884f71bec9fa526e80e1d1db43e7650b2 (patch)
tree0970f27373408474cf7979c40e2ee4574fb38e3d /src/List.cpp
parentba71810fab85da23ec8501af6d5d4935458b595e (diff)
line of guys now appears near middle of map
Diffstat (limited to 'src/List.cpp')
-rw-r--r--src/List.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/List.cpp b/src/List.cpp
new file mode 100644
index 0000000..ce206c5
--- /dev/null
+++ b/src/List.cpp
@@ -0,0 +1,16 @@
+#include "List.hpp"
+
+List::List()
+{
+ for(int i = 0; i < 10; i++)
+ {
+ Character x ('@',3,150,150+i);
+ men.push_back(x);
+ }
+}
+
+void List::draw(WINDOW * w)
+{
+ for(int i = 0; i < 10; i++)
+ men[i].draw(w);
+}