From: Erik V. <eri...@hc...> - 2006-02-02 22:46:55
|
I have committed stuff around messages to be displayed during the game. For now, during the OR only. Aspects are: 1. A new, low line near the top of the OR Window, in which one-line messages are displayed about what the player can do at each moment in the game. Currently, this message line disappears between token laying and train buying; I don't understand why, but that will no doubt be sorted out in due time. 2. The messages are internationalised by defining these in a language-dependent properties file. The default file is LocalisedText.properties. Versions for any language/country can be added with names like LocalisedText_en_US.properties or LocalisedText_fr.properties. In the code, localised messages can be obtained by calling Game.getText(messageKey). 3. Messages about special properties that can be exercised will be added later, I propose in a somewhat lighter colour. 4. The tile and token laying steps are now explicitly defined (in HexMap), and the messages are directly related to these steps. The code is somewhat reorganised around these steps. Erik. |