#include "Entities/PhysicsEntity.h"
/// ***** Private Method Headers *****
+
void updateParticles(float);
void updatePhysics(float);
/// ***** Private Variables *****
+
typedef std::set<Particle*> setPart;
setPart particles_To_Add;
setPart active_Particles;
setPart particles_To_Remove;
-bool clearParticles;
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()
{
}
+/// ***** 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