From: Erik V. <eri...@xs...> - 2010-01-20 18:40:28
|
> I propose to revert my suggested changes, and I come up with an > alternative patch that does exactly this in Java when I have some time. > That shouldn't be too hard (even with my limited Java skills). Are there > preferences: > > 1. add support the unlimited="-1" attribute as above > 2. add support the nounlimited attribute as above > 3. don't add an attribute. Unlimited is unlimited. Actually, there is an even better method, now that I'm thinking about how to solve the problem. Supporting unlimited tiles doesn't require changing the XML. It simply requires finding the places in the code where we check for tile availability, and adding an extra condition to it, so that it reads "if a tile is available or the unlimited tiles option is selected, lay a tile". ------------------- [EV] Hardcoding the unlimited setting would exactly having been my approach in this case. That would require only adding one condition to Tile.java line 203 (the game options map is passed down through the Tag hierarchy). (Sorry, for reasons unknown to me, Outlook 2003 won't indent copied mail, although I have told it so. If anyone knows a solution, please let me know). Erik. |