cleaned Make output, added base for entity Creator, and calling hooks
[physics.git] / src / game.cpp
index 8800e06..32a9e0b 100644 (file)
@@ -1,14 +1,16 @@
+#include <vector>
+using std::vector;
+
 #include "game.h"
 
+#include "debug.h"
+#include "entityCreator.h"
+
 #include "GameStates/GameState.h"
 #include "GameStates/Running.h"
 #include "GameStates/Paused.h"
 #include "GameStates/CreatingPolygon.h"
 
-#include <vector>
-using std::vector;
-
-
 /// ***** Private Variables *****
 
 // The stack of active game states
@@ -27,10 +29,20 @@ void gameInit()
     running = new Running();
     paused = new Paused();
     creating_Polygon = new CreatingPolygon();
+
+    // create starting entities
+
+    creator::init();
+
+#ifdef DEBUGGING
+    cout << "World Created" << endl;
+#endif
 }
 
 void gameClean()
 {
+    creator::clean();
+
     delete creating_Polygon;
     delete paused;
     delete running;