Original Post
in my cGame class im thinking of creating an object manager class, or basically a linked list for my objects. the problem is, there will be a lot of different types of objects (probably all derived from the cObject class). i know i can still have a linked list because they are all derived from the base class, but how would i go about collision detection for the objects?
for instance, i want to detect for certain collisions but not others. how can i differienciate between the different objects (be they bullets, players, enemies, platforms etc) in an efficient manner with only one list? the way i did it in my last game was have like 5 different linked lists for each type of object... but i know thats not the right way, any suggestions? im stuck and i cant go any further without this, thanks!
----------------------
i code therefore i am.
Aero DX - Coming to a bored Monitor near you!