summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-06-11 11:38:49 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-06-11 11:38:49 -0400
commit879c2c04d9c3879f871cfe79f9b25fd23c5184b4 (patch)
tree70bf8773b18478af58ecd0877b6bb62a7279c094 /src/main.cpp
parent11f4af82626b0e35c35606b327e4181c7c88f228 (diff)
downloadtherapy-879c2c04d9c3879f871cfe79f9b25fd23c5184b4.tar.gz
therapy-879c2c04d9c3879f871cfe79f9b25fd23c5184b4.tar.bz2
therapy-879c2c04d9c3879f871cfe79f9b25fd23c5184b4.zip
Wrote EntityManager
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4157350..29a364b 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -1,9 +1,9 @@
1#include <ctime> 1#include <ctime>
2#include <list> 2#include <list>
3#include "renderer.h"
4#include <cstdlib> 3#include <cstdlib>
5#include "game.h" 4#include "renderer.h"
6#include "muxer.h" 5#include "muxer.h"
6#include "entity_manager.h"
7 7
8int main() 8int main()
9{ 9{
@@ -14,8 +14,12 @@ int main()
14 14
15 // Put this in a block so game goes out of scope before we destroy the renderer 15 // Put this in a block so game goes out of scope before we destroy the renderer
16 { 16 {
17 Game game {"res/maps.xml"}; 17 EntityManager manager;
18 game.execute(window); 18
19 int eRef = manager.emplaceEntity();
20 int eRef2 = manager.emplaceEntity();
21 manager.setParent(eRef, eRef2);
22 printf("%d\n", manager.getParent(eRef));
19 } 23 }
20 24
21 destroyMuxer(); 25 destroyMuxer();