Rybadour / Spider-Fish

A simple Bullet Hell Shooter.
socr.uwindsor.ca/~giga
8 stars 4 forks source link

CollisionManager exposes no update() function to notify of PhysicalEntity changes. #30

Closed erisco closed 13 years ago

erisco commented 13 years ago

CollisionManager exposes no update() function to notify of PhysicalEntity changes.

A reasonable API would be:

// Notifies all CollisionSpaces via CollisionSpace::update(...)
CollisionManager::update(PhysicalEntity const &entity) const;

// Calls CollisionSpace::updateAll() on the CollisionSpace belonging
// to the specific group number.
CollisionManager::update(unsigned int group) const;

// Calls CollisionSpace::updateAll() on all CollisionSpaces
CollisionManager::updateAll() const;