Update of /cvsroot/rails/18xx/rails/game
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13320/rails/game
Modified Files:
Round.java
Log Message:
Added a financials report to the end of each round.
Index: Round.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/Round.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** Round.java 8 Dec 2009 19:32:44 -0000 1.32
--- Round.java 30 Dec 2009 11:32:31 -0000 1.33
***************
*** 342,345 ****
--- 342,356 ----
protected void finishRound() {
+ // TEMPORARY? Report financials
+ for (PublicCompanyI c : companyManager.getAllPublicCompanies()) {
+ if (c.hasFloated() && !c.isClosed()) {
+ ReportBuffer.add(LocalText.getText("Has", c.getName(),
+ Bank.format(c.getCash())));
+ }
+ }
+ for (Player p : playerManager.getPlayers()) {
+ ReportBuffer.add(LocalText.getText("Has", p.getName(),
+ Bank.format(p.getCash())));
+ }
// Inform GameManager
gameManager.nextRound(this);
|