|
From: <ev...@us...> - 2010-09-18 15:20:24
|
Revision: 1427
http://rails.svn.sourceforge.net/rails/?rev=1427&view=rev
Author: evos
Date: 2010-09-18 15:20:17 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
Log player net worth gain/loss per OR in the Report window.
Modified Paths:
--------------
trunk/18xx/LocalisedText.properties
trunk/18xx/rails/game/OperatingRound.java
Modified: trunk/18xx/LocalisedText.properties
===================================================================
--- trunk/18xx/LocalisedText.properties 2010-09-17 22:24:13 UTC (rev 1426)
+++ trunk/18xx/LocalisedText.properties 2010-09-18 15:20:17 UTC (rev 1427)
@@ -437,6 +437,7 @@
OPTIONS=Options
OR=or
ORWORTHINCR=OR +/-
+ORWorthIncrease=Net worth gain/loss of {0} in OR {1} is {2}
PAR=Par
PASS=Pass
PASSES={0} passes.
Modified: trunk/18xx/rails/game/OperatingRound.java
===================================================================
--- trunk/18xx/rails/game/OperatingRound.java 2010-09-17 22:24:13 UTC (rev 1426)
+++ trunk/18xx/rails/game/OperatingRound.java 2010-09-18 15:20:17 UTC (rev 1427)
@@ -1530,13 +1530,20 @@
// priv.checkClosingIfExercised(true);
//}
+ ReportBuffer.add(LocalText.getText("EndOfOperatingRound", thisOrNumber));
+
// Update the worth increase per player
+ int orWorthIncrease;
for (Player player : gameManager.getPlayers()) {
player.setLastORWorthIncrease();
+ orWorthIncrease = player.getLastORWorthIncrease().intValue();
+ ReportBuffer.add(LocalText.getText("ORWorthIncrease",
+ player.getName(),
+ thisOrNumber,
+ Bank.format(orWorthIncrease)));
}
// OR done. Inform GameManager.
- ReportBuffer.add(LocalText.getText("EndOfOperatingRound", thisOrNumber));
finishRound();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|