From: Brett L. <wak...@ea...> - 2005-11-19 01:33:32
|
Ok... the initial token code is in CVS. There's some changes to the XML that I needed to make. Here they are: In CompanyManager.xml, I added token definitions for all public and private companies in 1830, 1856, and 1870 with a "tokens" parameter. For the private companies, I also added a "tokenValue" parameter. Special Note: tokenValue is a STRING, not an integer. The reason being 1870's port tokens. One port token is the value "10", the other token is two values currently defined as "20/10". I expect this to be changed/clarified whenever we move on to implementing 1870. In PublicCompany I've added two new variables, numCityTokens and maxCityTokens. Both are configured from the tokens parameter in CompanyManager.xml. numCityTokens should be decremented whenever a token is laid. maxCityTokens ought to never change. In 1830's Map.xml, I added the home parameter for the NYNH because it was missing. I also added a "preferredCity" parameter for the NYNH, so that his token can be auto-assigned. For the Erie in 1830, I still need to work on the generic token laying code so that the user can be queried where to play this particular token. Currently if no preferred city is defined, the first city is automatically selected. Right now, there is no token drawing on the map. I did add some debugging code into MapHex.MouseClicked that will drop the list of tokens on the hex into System.out. So far this seems to be working for the inital token placement when companies are started. ----Brett. |