now draws a ball, fixed top of states bug
[physics.git] / src / entityCreator.cpp
index 6ed785d..f72cda3 100644 (file)
@@ -1,12 +1,27 @@
 #include "entityCreator.h"
 
+#include "entityManager.h"
+#include "Entities/Ball.h"
+#include "graphics/colors.h"
+
+/// ***** Private Method Headers *****
+Ball* ball1;
+
+/// ***** Private Variables *****
+
+/// ***** Public Methods *****
 void creator::init()
 {
+    Vector2 pos(400, 400);
+    ball1 = new Ball(pos, 20, cBlue);
 
+    manager::add(ball1);
 }
 void creator::clean()
 {
+    manager::remove(ball1);
 
+    delete ball1;
 }
 
 void creator::addBall()