From: <ia...@co...> - 2005-10-08 23:53:59
|
> 1. Train ownership limits (Brett Lentz) > I'm feeling the need to step away from the stupid repaint issues with the Map for a while. > > I was looking over the handling of train purchasing, and I'm not seeing any definitions in the XML for what the maximum number of trains a company can own. > > Has this not been defined yet? > > I'm pretty sure I can add it in without too much hassle, but I just want to make sure I'm not duplicating efforts before I do. > > I think just a maxNumTrainsOwned="4" property is all we need. > > Is there any 18xx game that bases the number of trains a company can own on something other than what trains are available? > > Before we go inextricably tying these things together in the code, that might be handy to know. ;-) > Train limits may vary both by company (or company type) and phase of the game. You probably have to encode a lookup table that takes company and pahse, and returns the train limit. Doing so in a fashion that can let you specify defaults/large ranges at one go may help those who have to produce definition files later. A general note on my long silence: I have been very busy with my job over the last six months, and have had no time for out-of-hours coding. I've been following the mailing list, and it sound like things are progressing well. Iain. |