From: Erik V. <eri...@hc...> - 2005-06-09 15:54:34
|
It has been quiet for some time on this list, but that was not because nothing was happening. In fact I was working on a long haul: a Swing UI that would include the same functionality that I had included in the test servlet before. It's now all committed, as I consider it ripe for publication. The class to run is test.GameTest (Brett's original test class), which I have changed to open the new StatusWindow2 in stead of the original StatusWindow. I believe this UI is pretty intuitive. The main thing less so might be that if a number of light-orange buttons is displayed, one of these must be pressed to select something. Such a selection will activate a conformation button at the bottom of the relevant window. Of course the functionality is still very limited. It includes the 1830-style start round and the usual Stock and Operating rounds (currently only one OR per SR). Other limitations are: - no tiles, tokens, trains and phases yet. In an OR only the financial aspects can be handled. - no private special properties, except the "comes with" shares. But privates can be manually closed. - no special rules as in 1835/1856; the Pr and the CGR are normal companies. Etc. etc. The main goal of this early UI still is to find out how the UI/Model interface should look like. There are still lots of loose ends and suboptimal solutions; those can be dealt with later. One annoying bug is that, if a player sells the last private to a company, that private will remain showing up under the player's possesions (without adverse effects on the game). I don't know why. Another is, that the Start Round window shows ups initially with the buttons partly hidden. These become fully visible when a private is selected. The ui package now has some redundant classes, which will be removed later. Some of these reflect previous work by Brett. I hope you like this UI. Enjoy. Erik. |