From: Brett <wak...@ea...> - 2005-03-30 20:17:24
|
On Tue, 2005-03-29 at 17:47 +0200, Erik Vos wrote: > > I've been thinking about how to approach drawing the company chits on > > the stock market. > > First a point of nomenclature: I have never heard the word "chit" before, > and don't know what it means, except (obviously) out of the context where > you use it. It's probably a regional dialect thing. I picked it up from the local wargamers that play the large-scale hex & counter games like Totaler Krieg. Merriam-Webster defines chit as "a small slip of paper with writing on it." > I'd expect more non-native English speakers like me to have this problem. > In the rule books I find "token" in most American and "marker" in most > European-originated games, and I would prefer to standardis/ze on > one of these two words. > > I'd personally prefer "marker" for the stock market thingies and "token" > for the map (station) ones, but maybe there are better ideas around. > This is fine by me. In a similar vein, I prefer using the British spelling "colour" for our object names because it adds another easy visual differentiator between our objects from the java.awt.Color objects. > > If we only store the display information in the View portion, I think > > there may be problems when we need to save that information to a save > > file. > > > > So, in either StockMarket or StockSpace (probably StockSpace, > > i think), > > does it make sense to add the ability to store what company > > stock chits > > are currently occupying the space? Any suggestions on how we should > > store this? Does it sound like we need a new object class for this, or > > should we use information from an existing object, like > > Company perhaps? > > In the current classes I have included: > - in StockSpace: an ArrayList of Companies having their markers (or tokens) > there, > in top-to-bottom sequence, > - in PublicCompany: its currentPrice, which is a StockSpace instance, > identifying > the location of its stock price marker (or null for companies without priced > shares). > > So the marker's StockSpace and the marked Company have a mutual reference to > each other. > This is the way I would tend to approach issues like this. > And this way we do not need a new class. Ok... we should probably add accessor methods for obtaining the location of the marker on the stock market. ---Brett. The Internet is being scanned for viruses. |