Update of /cvsroot/rails/18xx/rails/game/special
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv3820/rails/game/special
Modified Files:
SpecialTrainBuy.java
Log Message:
Improved 18AL Info (by Phil Davies)
Index: SpecialTrainBuy.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/special/SpecialTrainBuy.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SpecialTrainBuy.java 28 Feb 2010 21:38:05 -0000 1.4
--- SpecialTrainBuy.java 2 Mar 2010 21:14:16 -0000 1.5
***************
*** 3,6 ****
--- 3,7 ----
import rails.game.*;
+ import rails.util.LocalText;
import rails.util.Tag;
import rails.util.Util;
***************
*** 113,116 ****
+ extra + " deduction=" + deductionString;
}
!
}
--- 114,135 ----
+ extra + " deduction=" + deductionString;
}
!
! @Override
! public String toMenu() {
! if (trainTypeName.equals("")) {
! return LocalText.getText("SpecialTrainBuyAny",
! deductionString,
! originalCompany.getName());
! }
! else {
! return LocalText.getText("SpecialTrainBuy",
! trainTypeName,
! deductionString,
! originalCompany.getName());
! }
! }
!
! public String getInfo() {
! return toMenu();
! }
}
|