Hi all!
Im currently trying to learn c++ from the tutorials on the site and so far so good.. There is one feature/way of programming I would like to learn but i cant figure out what to look for... I have some vague notion of something like this....

I would like to have several functions or loops such as animations on the move simultaniosly that can report for example collisions when they occur... I could handle these from some central function... I would like to be able to "load" and "unload" such functions on demand...

Im not neccesarily looking for an example in code... more like the name of what Im looking for and if this is a possible way of programming...

So far the only thing i tried in the OOP is classes and i cant figure out how they relate to the stuff im looking for..

Thanks!!