summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/creature.cpp4
-rw-r--r--src/list.cpp7
-rw-r--r--src/main.cpp13
3 files changed, 17 insertions, 7 deletions
diff --git a/src/creature.cpp b/src/creature.cpp
index aeff472..c9f9fa0 100644
--- a/src/creature.cpp
+++ b/src/creature.cpp
@@ -16,8 +16,8 @@ void Creature::Behavior()
//Priorities
- //Action
- this->Action();
+ //Action
+ this->Action();
}
void Creature::Action()
diff --git a/src/list.cpp b/src/list.cpp
new file mode 100644
index 0000000..e1695d6
--- /dev/null
+++ b/src/list.cpp
@@ -0,0 +1,7 @@
+#include "list.hpp"
+
+List::List(Window m)
+{
+ C.insert(Creature(m,"img/Cbasic.png"));
+ R.insert(Resource(m,"img/Rbasic.png"));
+} \ No newline at end of file
diff --git a/src/main.cpp b/src/main.cpp
index de1351e..4435ad9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3,8 +3,9 @@
int main()
{
Window main;
- Creature testcreature(main, "img/Cbasic.png");
- Resource testresource(main, "img/Rbasic.png");
+ //Creature testcreature(main, "img/Cbasic.png");
+ //Resource testresource(main, "img/Rbasic.png");
+ List(main);
Event e;
while(e.gRun())
@@ -17,9 +18,11 @@ int main()
// eventHandle(e.gEvent());
}
main.Clear();
- testcreature.Behavior();
- testcreature.Place();
- testresource.Place();
+
+ //testcreature.Behavior();
+ //testcreature.Place();
+ //testresource.Place();
+
main.Render();
SDL_Delay(10);
}