From: Erik V. <eri...@hc...> - 2005-08-16 20:38:02
|
I have committed another utility: util.MakeGameTileSets, which creates game-specific subsets of tiles/Tiles.xml. The subset is based on the contents of the TileSet.xml file of that game. TileSet.xml must also include all preprinted tiles (another reason for this is that the possible upgrades are defined here; this includes initial tile lays, which in this context are treated as upgrades of "white" -actually light green- tiles). MakeGameTileSets takes game names as arguments, or ALL to pick up all defined games (I have not tested ALL yet). So far I have executed "java -cp .. MakeGameTileSets 1830" to create file data/1830/Tiles.xml out of tiles/Tiles.xml and data/1830/TileSet.xml. It may seem a bit strange to divide tile definitions across two different XML files (not including the SVG stuff!), but I think it is easier this way. TileSet.xml must be entered manually, but the much larger Tiles.xml can now be generated automatically. Erik. |