From: Erik V. <eri...@hc...> - 2005-12-13 20:00:00
|
> I've committed more token drawing code. > > Now, drawing a single token in a normal and an OO tile is > reasonably correct. > > > Next, I'll need to get ORWindow to handle the manual token > placement. Any thoughts on how we're going to handle > processing the costs of laying each token? Do we need to add > token costs to the XML data we load? Yes, that must somehow be done. There are a lot of different ways in which token costs are calculated in the various games, and I don't know if we can create a generic structure for that. For instance, in 1835 the cost is 20DM per hex distance from the home base, "as the crow flies", with the proviso that the crow has no passport (i.e. may not cross the German border - there is one potential token lay on the board where this proviso makes a difference). In other games, tokens are bought at a fixed (18EU) or variable (1841) price at floating time, after which token laying is free. I think we will need game-specific classes in some cases, but we could take the 1830 method as the default. I don't think we need a TokenManager. Perhaps add a line to CompanyManager.xml like <Tokens costMethod="1830" cost="0,40,100"/> This might change, though, once we start looking at other games. I suppose the token laying code in ORWindow and MapWindow would be similar to the tile laying code. If you want I can pick it up, or extend it to OperatingRound from where you leave it. Erik. |