From: <wak...@ea...> - 2005-08-10 06:26:31
|
Just checked out all the changes. Wow. It's looking almost like a complete game. Other than the map itself, it looks like you can already use this to manage a game session. This is marvelous. Changing the fixed hexmap is going to be quite a bit of a chore. A quick overview: It all starts in the HexMap class with the 'show' variable. This variable defines which hexes in the grid are displayed. You'll note that I've enabled nearly all of them. The ones that are false are required to be false otherwise the application blows up due to unhandled exceptions. The methods setupHexesGameState() and setupNeighbors() in HexMap, and setupEntrancesGUI in each of the oriented hexmap classes will all need some work in coping with a larger and dynamically allocated map and making sure they're properly being told the correct coordinates. Hmm... I just noticed that setupEntrancesGUI() is still rounding off to integers when it doesn't need to now that I've upgraded the Points to doubles. And so now I'll try and poke at this a bit more... :) One thing I've been looking at is graphics for the tiles. John Galt's Tile Encyclopedia ( http://www.diogenes.sacramento.ca.us/18xx_net/tiles/ ) is one resource for tile graphics. Though, gifs don't scale very well. Is there a way we could get these graphics converted into SVG? I'm thinking a vector-based format is ideal. ---Brett. -----Original Message----- From: Erik Vos <eri...@hc...> Sent: Aug 8, 2005 2:08 PM To: rai...@li... Subject: [Rails-devel] Changes I have committed a bunch of (minor) changes: 1. The UI package is cleaned up, several unused classes have been removed. 2. I have restructured parsing of CompanyManager.xml to avoid duplicate parsing code in CompanyType and Company. CompanyType now builds a "dummy company" with all the properties of the <CompanyType> element. During parsing of each <Company> element, first that dummy company is cloned, and then the contents of <Company> are applied. This way, <CompanyType> creates a default which can be overridden in <Company> elements of the same type. Of course, <Company> must at least contain a company name! 3. GameTest now creates an extra MapWindow, containing either an E/W or a N/S oriented map, as appropriate for the game. The relevant HexMap subclass is specified in Map.xml. Currently, just Brett's fixed maps are shown, the rest of Map.xml is ignored. I will try to work on that next. Erik. |