Read in EFS.INI as a java Properties object.
Include second set of modifications by RSW. Here are some notes on what's in this revision:
- Resource counting and consumption are working, but I haven't yet made any changes in the light of our recent discussion.
- Cities and units consume food, lose health from starving, and regain health (as described in The Truth About EFS).
- Class Resources contains the resource counting and consumption methods intended for general use.
- Class Economy does the start-of-turn economic update.
- Class Faction holds faction-specific data, such as money. There may be some overlap between this and Economy.
- Class EfsIni holds data from EFS.INI. For now it also holds game options that are normally entered through the GUI, such as Universal Warehouse.
- I've left createUnitInHex and deleteUnit in Game. I hope you'll be able to use them. I've also added some tiny utilities, like getUnitHex, which returns the hex a given unit is in.
- I've moved the harvest data table out of Game, and made it private in Economy, as no other class should need it.
- I've put new initialisation in Game.init, as we discussed.
- I've created getters in Game for structures, planets and random.
- I've made a few other minor edits.