So basically I'm experimenting with the good ol JRPG turn-based combat idea. Now in my battle each combatant, player and enemy object, are in set into the same Family. Their speed variable is different on each object and after I've set their commands they should act in the order from highest to lowest speed. Fastest goes first, plays animation, then the second fastest etc. until the cast has all done their thing. How should I make the system pick the objects in order like this?
The best system I thought would be to give the family an 'order' variable that numerizes the objects after first checking each of their speed. It would make calling the objects easier during the actual part of acting out their commands. But I don't know how to do that.