Update of /cvsroot/rails/18xx/rails/game/action
In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv10874/rails/game/action
Modified Files:
BuyTrain.java
Log Message:
Removed use of redundant 'forcedExchange' TrainBuy attribute
Index: BuyTrain.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/action/BuyTrain.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** BuyTrain.java 5 Mar 2010 20:49:41 -0000 1.19
--- BuyTrain.java 30 Apr 2010 09:35:36 -0000 1.20
***************
*** 30,34 ****
--- 30,37 ----
transient private List<TrainI> trainsForExchange = null;
private String[] trainsForExchangeUniqueIds;
+
+ /** Obsolete, but left in for backwards compatibility of saved files */
private boolean forcedExchange = false;
+
private boolean presidentMustAddCash = false;
private boolean presidentMayAddCash = false;
***************
*** 81,88 ****
}
! public BuyTrain setForcedExchange(boolean value) {
! forcedExchange = value;
! return this;
! }
public void setForcedBuyIfNoRoute(boolean hasNoTrains) {
--- 84,91 ----
}
! //public BuyTrain setForcedExchange(boolean value) {
! // forcedExchange = value;
! // return this;
! //}
public void setForcedBuyIfNoRoute(boolean hasNoTrains) {
***************
*** 148,154 ****
}
! public boolean isForcedExchange() {
! return forcedExchange;
! }
public boolean mustPresidentAddCash() {
--- 151,157 ----
}
! //public boolean isForcedExchange() {
! // return forcedExchange;
! //}
public boolean mustPresidentAddCash() {
|