From: Brett <wak...@ea...> - 2005-03-20 18:20:14
|
> The StockSpaceType "name" is arbitrary and does not need to describe the > colour or whatever. > It is only used as a key by the stock spaces to find the common properties. > The "colour" is optional, but is there for potential use by the UI > (as are the fgColour and bgColour attributes of the public companies). > It could also contain an RGB value in some format (for some companies > I use hex. #RRGGBB which shows neatly in the HTML output of my test servlet, > > I'm not sure if that is useful for a Java UI). > The java.awt.Color constructor that's most easily used accepts (float r, float g, float b) or (int r, int g, int b) for each of the values. Floats range is (0.0 - 1.0) and Int range is (0 - 255). The less we need to do to parse the incoming values, the better. > As a short-term goal I would propose to create a program that acts > like Lemmi's moderator, i.e. it can manage all game actions except > those that relate to the map (because that is the hard part!). > This would mean that renevues and building costs would need to > be entered manually. The first game to do this for would be 1830. > > >From there we could decide how to get on: adding more games, > or adding the map, revenue calculation etc. That's a good and reasonable goal. I think that building a simple dump of the game status as a save file will be workable for making this sort of moderator easily usable. ---Brett. All art is but imitation of nature. -- Lucius Annaeus Seneca |