I'm working on a turn based rogue-lite game with phases, and multiple objects have effects that trigger when the game phase changes. Currently, they all happen at the same time, but I'd like for them to instead happen one at a time. Like have them all wait their turn, only triggering when the one before it finishes. However, since there would be a variety of different types of actions, and one object could have multiple actions, something like an Interface or an array/list/stack/etc wouldn't work. Tried researching it on my own but couldn't figure out the best wording to get the answer Im looking for.
Is there a way to create a list/stack/whatever of functions, or some other structure to achieve this? Thanks in advance.