-#include <set>
-using std::set;
-
-#include <iostream>
-
#include "entityManager.h"
#include "debug.h"
+#include <set>
+#include <iostream>
+
#include "Entities/Entity.h"
#include "Entities/Particle.h"
#include "Entities/PhysicsEntity.h"
/// ***** Private Method Headers *****
+
void updateParticles(float);
void updatePhysics(float);
/// ***** Private Variables *****
-typedef set<Particle*> setPart;
+
+typedef std::set<Particle*> setPart;
setPart particles_To_Add;
setPart active_Particles;
setPart particles_To_Remove;
-bool clearParticles;
-typedef set<PhysicsEntity*> setPhys;
+typedef std::set<PhysicsEntity*> setPhys;
setPhys physics_To_Add;
setPhys active_Physics;
setPhys physics_To_Remove;
-bool clearPhysics;
-/// ***** Public Methods *****
+/// ***** Initializers/Cleaners *****
void manager::init()
{
+
}
void manager::clean()
{
+
}
+/// ***** Public Methods *****
+
void manager::add(Entity* e)
{
{
std::cerr << std::endl;
}
-void manager::clear()
-{
- clearParticles = true;
- clearPhysics = true;
-}
-
void manager::handleInput()
{
// TODO
{
(*it)->draw();
}
-
}
/// ***** Private Methods *****
+
void updateParticles(float time_step)
{
// add new Particle*s to Active