Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Roy301

Pages: [1]
1
General / Programming a billard game
« on: March 23, 2016, 07:38:37 pm »
Hello,
I'm programming a litte billard game. I have the problem that i only know how to check for a collision between specific balls but i have already created a std::list for the balls. How can i  now check for collision between any balls in this list?

Source Code:

main.cpp
http://pastebin.com/wASBRcP3

Framework.cpp
http://pastebin.com/GtVs3ZBp
Framework.hpp
http://pastebin.com/YJnyA2ei

BallManager.cpp
http://pastebin.com/7xQd1wWp
BallManager.hpp
http://pastebin.com/0tXtHmes

Ball.cpp
http://pastebin.com/3QeTjwgx
Ball.hpp
http://pastebin.com/swruyw1C

Pages: [1]