From: Erik V. <eri...@hc...> - 2005-08-10 03:32:30
|
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. |