From: Erik V. <eri...@hc...> - 2006-05-30 22:13:58
|
OK, it now works, although the visual appearance has not really improved, to put it mildly. But I guess that is a matter of fine-tuning. I have not looked at the code yet. In the meantime I have been working on the Stock Round view/model interface, with the goal to let the GUI only enable allowed actions. So if you have only $80, buy-buttons for companies with a higher price will not be highlighted, etc. Similar when you own 60% or are at a certificate limit. Next thing will be to apply the same procedure to selling (not done yet). The check for bankruptcy will then become very simple: you must raise cash but the list of shares allowed to be sold is empty. I have accomplished this in a similar way as for the trains a while ago: a new class TradeableCertificate is used to create lists of allowed buy or sell options. Erik. > Doh... the cvs commit didn't catch all the files. > > It's all up there now. > |