I'm not sure if I phrased the question right, but I'm looking to iterate through an array of similar objects like "projectiles[] and enemies[]"
instead of having them all separate like
"bats[], zombies[], skeletons[], goblins[], etc".
Possibly by storing different classes of the same type in 1 array or an array of their pointers?
That way I can check for collision between enemies and projectiles instead of checking between fireball and zombie, fireball and bat, fireball and skeleton, etc.