From: Erik V. <ev...@us...> - 2009-09-03 21:37:03
|
Update of /cvsroot/rails/18xx/rails/game/special In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21151/rails/game/special Modified Files: ExchangeForShare.java Log Message: Implemented the certificate limit change after CGR formation. Have moved the initial limits out of Player into PlayerManager. PlayerManager is now a configurable component; this has affected all Game.xml files. The above has has effects on other classes, in particular StockRound. Index: ExchangeForShare.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/special/ExchangeForShare.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ExchangeForShare.java 15 Jan 2009 20:53:28 -0000 1.9 --- ExchangeForShare.java 3 Sep 2009 21:36:53 -0000 1.10 *************** *** 34,38 **** } ! public boolean execute() { publicCompany = --- 34,38 ---- } ! public boolean execute(StockRound round) { publicCompany = *************** *** 65,69 **** } /* Check if the player has room for a share of this company */ ! if (!player.mayBuyCompanyShare(publicCompany, 1)) { // TODO: Not nice to use '1' here, should be percentage. errMsg = --- 65,69 ---- } /* Check if the player has room for a share of this company */ ! if (!round.playerMayBuyCompanyShare(player, publicCompany, 1)) { // TODO: Not nice to use '1' here, should be percentage. errMsg = |