Hello, I'm working on a little project where I need instances of my Actor class to have a sort of scriptable function execution order. My impulse is to have each instance of Actor have a unique std::vector of function pointers. My intention is to allow each instance to execute their functions in a different order and number of times. I'm totally not sure how this would be constructed as I've not yet had to use function pointers (they are often not taught in courses it seems). Is there a better way to have an instance call it's functions in an arbitrary order which are set after instanciation?
There is a good tutorial located on this site that could help you further you knowledge and hopefully help you do what you want. Sorry if it did not help, its the only answer i had.