Original Post
I'm doing a side scrolling game and I was wondering about collision detection. I'm going to have a lot of characters on the screen and I'm going to want to know if they collide with each other. I assume I should make a check collision function in each of my character classes. I want to see if they collide with each other. It would seem troublesome to check each one against each other A.collide(B) A.collide(C) A.collide(D) A.collide(E) A.collide(F) A.collide(G) A.collide(H) A.collide(I) A.collide(J) B.collide(C) B.collide(D) etc.. I would have to call so many collide functions, is there a simpler way to do this?