summaryrefslogtreecommitdiff
path: root/src/List.cpp
diff options
context:
space:
mode:
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);
+}