From: Brett <wak...@ea...> - 2005-03-26 20:00:43
|
I've been thinking about how to approach drawing the company chits on the stock market. One thing that occurs to me is that perhaps we need model/view separation on this as well. In other words, the information about where the chits are ought to be stored in the StockMarket or StockSpace class (I haven't quite decided which yet), and the UI should simply draw the market based on the information it gets from those classes. 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? ---Brett. Practical people would be more practical if they would take a little more time for dreaming. -- J. P. McEvoy |