From: Erik V. <ev...@us...> - 2009-09-04 18:56:34
|
Update of /cvsroot/rails/18xx/rails/game/specific/_18EU In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28727/rails/game/specific/_18EU Modified Files: StockRound_18EU.java Log Message: Moved player share limit from Player to GameManager Index: StockRound_18EU.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_18EU/StockRound_18EU.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** StockRound_18EU.java 4 Sep 2009 18:40:30 -0000 1.22 --- StockRound_18EU.java 4 Sep 2009 18:56:16 -0000 1.23 *************** *** 116,120 **** comp = cert.getCompany(); if (isSaleRecorded(currentPlayer, comp)) continue; ! if (currentPlayer.maxAllowedNumberOfSharesToBuy(comp, cert.getShare()) < 1) continue; shares = cert.getShares(); --- 116,120 ---- comp = cert.getCompany(); if (isSaleRecorded(currentPlayer, comp)) continue; ! if (maxAllowedNumberOfSharesToBuy(currentPlayer, comp, cert.getShare()) < 1) continue; shares = cert.getShares(); *************** *** 168,172 **** comp = cert.getCompany(); if (isSaleRecorded(currentPlayer, comp)) continue; ! if (currentPlayer.maxAllowedNumberOfSharesToBuy(comp, cert.getShare()) < 1) continue; price = comp.getMarketPrice(); --- 168,172 ---- comp = cert.getCompany(); if (isSaleRecorded(currentPlayer, comp)) continue; ! if (maxAllowedNumberOfSharesToBuy(currentPlayer, comp, cert.getShare()) < 1) continue; price = comp.getMarketPrice(); *************** *** 197,201 **** if (isSaleRecorded(currentPlayer, company)) continue; if (!mayPlayerBuyCompanyShare(currentPlayer, company, 1)) continue; ! if (currentPlayer.maxAllowedNumberOfSharesToBuy(company, certs.get(0).getShare()) < 1) continue; stockSpace = company.getCurrentSpace(); --- 197,201 ---- if (isSaleRecorded(currentPlayer, company)) continue; if (!mayPlayerBuyCompanyShare(currentPlayer, company, 1)) continue; ! if (maxAllowedNumberOfSharesToBuy(currentPlayer, company, certs.get(0).getShare()) < 1) continue; stockSpace = company.getCurrentSpace(); |