From: Erik V. <eri...@hc...> - 2005-08-04 20:00:16
|
> Right now, the easiest way to change between N-S and E-W > oriented hexes is to change the signature of BattleHex, > because it currently extends the particular hexmap. I'm still > thinking on how to deal with that. I would make the map dynamically configurable, as we are already doing in ComponentManager and GameManager. So there would be an XML definition somewhere, like <HexMap class="EWHexMap"> and then instantiate the map in HexTest (or whereever) with a statement like HexMap map = Class.forName(mapClassName).newInstance(); where mapClassName would be either "EWHexMap" or "NSHexMap". This would mean that all code now in BattleMap should move to HexMap. > I'm thinking that replicating the tile laying mechanism that > SimTex's 1830 PC Game used is probably the easiest way to go. > While it would be nice to do drag-n-drop tile laying, I think > clicking on the tile to click through possible upgrades is > going to be easiest and require the least amount of screen > real-estate. We could have the right button pop up a menu of valid tiles, then left/right clicking could turn the tile (counter)clockwise. Erik. |