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
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