From: <Dr....@t-...> - 2012-02-15 20:59:01
|
Hi, by accident i stumbled over the hidden design concept thats treated differently in some routines :) At some places in the code the game assumes that the president certificate is the first in the internal certificate list of a company. But in other parts the game code explicitely searches the certificate list for a certificate with the president attribute set. Of course i stumbled over the second code first as it gets used in Stockround to determine if we start a company by buying a president. And the first assumption is used in the subsequent floatCompany to adjust the UI... I can work around that and rework the list of certificates, nevertheless we should make sure that everyone else subsequently knows about that behaviour :) regards, Martin P.s. Code snippet: PublicCompany.java: public Player getPresident() { if (hasStarted()) { CashHolder owner = certificates.get(0).getPortfolio().getOwner(); if (owner instanceof Player) return (Player) owner; } return null; } |