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.
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.