I decided to challenge myself and recreate a very jrpg-esque battle system in C2 in the ways of old Final Fantasies and such. Now I'm wondering how I should the character turns handled. Each character, player and enemy has a Speed stat which decides the order in which they all act. After player has issued the commands the game should "line them up" so it knows who acts and when. By lining them up I mean somehow count each entity's Speed and call their actions in order.
Could arrays work for this? Any ideas would be welcome.