summaryrefslogtreecommitdiff
path: root/src/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.cpp')
-rw-r--r--src/list.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/list.cpp b/src/list.cpp
index e1695d6..7d6f10e 100644
--- a/src/list.cpp
+++ b/src/list.cpp
@@ -2,6 +2,28 @@
List::List(Window m)
{
- C.insert(Creature(m,"img/Cbasic.png"));
- R.insert(Resource(m,"img/Rbasic.png"));
-} \ No newline at end of file
+ Creature X0(m,"img/Cbasic.png");
+ C.push_back(X0);
+ Creature X1(m,"img/Cbasic.png");
+ C.push_back(X1);
+
+ Resource Y(m,"img/Rbasic.png");
+ R.push_back(Y);
+};
+
+void List::Behavior()
+{
+ int i;
+ for(i = 0; i < C.size(); i++)
+ C[i].Behavior();
+}
+
+void List::Place()
+{
+ int i;
+ for(i = 0; i < C.size(); i++)
+ C[i].Place();
+
+ for(i = 0; i < R.size(); i++)
+ R[i].Place();
+}