From: <wak...@ea...> - 2005-05-04 23:04:20
|
> (Another reason why this makes sense is that privates count against > the certificate limit in most games). Really? Hmmm... in that case, we probably do need a privateCertificate, and a parent Certificate class for both PublicCert and PrivateCert. > I will also create a new class StartPacketItem, that will contain > either one or two Certificates, the second being the additional > certificate that comes with some primary ones. The Start Packet will > be configured separately from the Private companies (because of 1835 etc.). Why wouldn't you just use the certificate from the Public Company portfolio? Here's how I see this working: GameManager fills each publicCompany portfolio with their stocks. GameManager then examines the rules for each private, and if the private comes with a publicCompany certificate, like the B&O or PRR, just call the existing set*() methods to add the publicCompany certificate to the privateCompany portfolio. When the privateCompany is bought, we add the contents of its portfolio to the player portfolio. If a privateCompany can exchange itself for a share of publicCompany stock, such as in 1830 with the private company that may be exchanged for a share of NYC, we don't need any initial stock allocation, we just process that as two steps: close the private, buy an available share for free. |