krgauthi / Broids

3 stars 2 forks source link

Create "destroy" methods for entities #56

Closed ntpeters closed 11 years ago

ntpeters commented 11 years ago

We need a way to determine when an entity should die. Create an abstract method in Entity, then create the individual implementations for each entity. For example: ships/asteroids may die after health is depleted, bullets die after a certain amount of time.

dementeddr commented 11 years ago

Each entity has a destroy method. Each destroy method MUST call CoreLogic.removeEntity(this);