From: Dr. M. B. <dr....@t-...> - 2011-08-12 05:30:39
|
Hi Brett, Erik and Stefan et al. For the background information, 1880 and a number of other games change the seat order after the starting or in the starting round based on certain auction results. Eric helped me to bring in a reorder routine in rails.game.gamemanager called reorderPlayerByCash which should reorder the players array based on their wallet. This seems to function well inside the scope of the Roundclass and its subclasses. But to my astonishment or Javanewbeeness the changed array players doesn't show in the gameManager itself if you watch the array in debug mode outside of the Roundclasses (i.e. rails.ui.swing.startwindow and Statuswindow). So naturally the changed playerorder cant be accessed from that classes and thus the changed seating order doesn't reflect it self in the ui. Whereas the actions taken in the rounds are nevertheless credited right in the ui display. This leads in a Stockround to the funny actions that Player A is shown as active and upon acting his action leads to result for player C for example. So if anyone of you could point me at the silly simple (I assume) mistake in my train of thought in implementing the reordering I would be very grateful. Regards, Martin |