Some may know already that I have started battlescape development for openxcom. Independently from SupSuper's geoscape development atm, and not (yet) committing into SVN.
You can always ask me on IRC how this is progressing, but I'm not there all the time, so I decided to post my progress here for these curious people.
milestone 1 - done
I started with a design, threw the design far away and started coding.
milestone 2 - done
First new class I created is the BattlescapeState. This is where all the action takes place. It divides in 2 main parts, the "_map" part and the "_icons" part. Map, another new class, is an interactice surface which is the viewport to the battle map. Icons... well, the icons
And then lots of interactive surfaces, one for each button. The abort button stops the battlescapestate. The battlescape state starts when pressing the ufopaedia button on the geoscape. (just for quickly testing the battlescape state of course)
milestone 3 - todo:
- review code of previous milestone
- create SavedBattleGame class (the pointer is held by SavedGame) which holds a set of Tiles
- using XcomRuleset certain .MAP files are loaded into the set of tiles, (depending on terrain, mapsize, mission,...)
- proper terrain PCKs (tilesheets) are loaded
- the Map is drawn.
- post a screenshot in this thread