From: John D. G. <jd...@di...> - 2012-05-13 05:53:51
|
On 2012-05-12 15:45, Erik Vos wrote: >> I'm going to treat the mines as offboard destinations for calculating >> runs, which means I need a way to specify that the G trains must start >> "offboard" and all others can't go there. Graphically, I intend them to >> look like the actual board (which means that the coal company's token, >> which will exist for calculating runs, needs to be invisible). > Not sure how to handle inaccessibility based on train type (or train class). > I guess Stefan will have to write some special code for that. A way to make > it generic would be fine, as other games need this feature as well. To limit what trains a company can own, I suggest an attribute within either Company or CompanyType of the form <Train canOwnTypes="1G,2G,3G,4G"> But to limit access to map hexes by train type is harder. Maybe you're right and "mine" should be its own type of stop (in which case we would declare the passenger trains as not being allowed to go there, and the goods trains as needing to have exactly one mine on their run). At any rate, here is what I have so far for the six XML files under /1837/data. Game.xml is particularly incomplete. I have the feeling that the whole "merge minor companies into the Prussian" sequence from 1835 is going to move from being game-specific to the common code base, where other games (18MEX? 2038 someday?) will use it, too. 9 of the 10 major companies in 1837 have at least one company that merges into them! I'd like to see what the tile set looks like after TileManager is finished with them. I'll probably need to correct half the orientations in Map.xml. |