/// ***** Public Methods *****
-void entityMInit()
+void entityManager::init()
{
}
-void entityMClean()
+void entityManager::clean()
{
}
-void addEntity(Entity* e)
+void entityManager::add(Entity* e)
{
{
Particle* p = dynamic_cast<Particle*>(e);
std::cerr << "ENTITY TYPE NOT SUPPORTED BY addEntity()!!";
std::cerr << std::endl;
}
-void deleteEntity(Entity* e)
+void entityManager::remove(Entity* e)
{
{
Particle* p = dynamic_cast<Particle*>(e);
std::cerr << std::endl;
}
-void clear()
+void entityManager::clear()
{
clearParticles = true;
clearPhysics = true;
}
-void handleInput()
+void entityManager::handleInput()
{
// TODO
}
-void updateEntities(float time_step)
+void entityManager::update(float time_step)
{
updateParticles(time_step);
updatePhysics(time_step);
}
-void drawEntities()
+void entityManager::draw()
{
// update active Particle*s
for( setPart::iterator it = active_Particles.begin();
return x % y + (x < 0 ? y : 0);
}
-float radsToA(float rads)
-{
- return ftofix(rads * 128/PI);
-}
-
-float atanA(float c)
-{
- return radsToA(atan(c)) + itofix(64);
-}
-
-float atan2A(float y, float x)
-{
- return radsToA(atan2(y,x)) + itofix(64);
-}
-
/// Vector2 Math
Vector2 perp(const Vector2& vec)
int mod(int,int);
-float radsToA(float);
-float atanA(float);
-float atan2A(float, float);
-
/// Vector2 Math
//Vector2 vectorToLine(float, float, float, float) const;