it was more the organisation of the code - I didn't manage to quite understand how to make separate files for the classes. I really didn't like the "work in one file" approach. I also couldn't find an environment that worked as well as flashDevelop does for actionscript - what do you use?
I only spent a very short time looking for the separate file thing and I'm still quite happy with actionscript atm though. I was just envious of the easy way they do things like the message/menu functions. I definitely want to have a go in the future, but I'm settled on AS3 for now.
Actually it's really easy to have separate files in Python. Have one file contain classes, variables, or functions that you're going to use, and then on your other file use import [filename] - the same way you'd import a built-in module.
PTW, this looks great. Any plans to post an alpha?
Thanks! Yeah, as soon as I can get a minimum of interesting things going on, I'll try to release something for people to play around with. I'm planning on making it really easy to modify the economy too, so that I can have people add in their own stuff. Should be interesting to see what happens.
I've been thinking some more about population, labor, and government. Right now, I'm going to say each raw resource gatherer (farmer, miner, etc) represents 100 people, and each specialist (blacksmith, clothier) represents 20 people. The government eventually will be able to pull some raw resource gatherers away from their jobs for large construction projects, and for conscription into an army. The government also takes half of what each resource gatherer produces, and a little from each caravan bringing raw resources.
I modeled a really simple form of consumption. If any of the agents in the economy simulation go too long without food in their inventories, they'll starve. I'll eventually make them try to emigrate if they can leave the city, but they won't have much of a choice if the city is under siege. However, in my current tests, a lot of people are starving even with a food surplus - which tells me they're either not adjusting their prices correctly, or they're filling up their inventories to the point where they can't hold any food.