If I have 10 different kinds of enemies and 10 different kinds of bullets, is there any way to have a check to see if a bullet collides with any enemy? Or for every enemy (among different kinds) just see if it collides with whatever bullet and take the dammage that bullet packs with it in one of it's object variables?
I'm trying to figure out a way to do this without having 10 collision checks for each bullet type or 10 different collision checks with each enemy type.
In a traditional language you'd just have a generic "object" class with health and collision checks and have subtypes inherit from that... I guess I'm trying to encapsulate collisions.