Being that Real Time Strategy games are my favorite genre of game, I got back to working on my own. Of course I am at the very beginning still but one of the things that constantly comes to mind most of all things required in the game is how to handle the actions of the sprites or characters in the game.
If the player tells 20 workers to gather wood, 20 workers to gather gold and 20 workers to gather food, would the best approach be to iterate through a sprite instance with an some kind of action funtion that makes sure the character keeps doing what he is told, returns the goods and goes and gets more? With 100’s of peeps on the map that would be a lot of calculating.
How did Warcraft 2 do it? How do the newer games do it? This is one of the biggest things I cant really wrap my brain around.
Any ideas would be great, thanks for any pointers!