From: Erik V. <eri...@hc...> - 2005-05-01 21:41:27
|
The basic StockRound class now seems to work. I have changed GameTestServlet to use it, and it looks good. I have added error messages, which are saved in Log, that now has a separate buffer for such messages. The error messages can be displayed on screen, but are not be logged. I display the errors in red (and the log messages in black). I see StockRound and its future siblings as the main components in the middle layer, between the UI and the data objects. Game/GameManager also reside there. Quite some parameters are still hardcoded the 1830 way, such as floating when 60% is sold, full capitalisation etc. Much additional XML work is needed to configure all that, but maybe it is more useful now to get on with the implementation of the various rounds, as these are the backbone of the whole game. There isn't a StockRoundI interface yet, but I suppose we will need that too to facilitate future extension. Erik. |