}
}
}
if(map.getStationAtTile(this.train.getGridLocation()) != null && this.KEY_BUY_COAL) {
CoalCoach coalCoach = this.train.findNotfullCoalCoach();
if(coalCoach != null){
/* Player has a non full coal coach */
float priceOfCoal = 2f;
int amountToBuy = 100;
/* Coal is 2 dollars / 100 units */
float cashToBuy = this.train.withdrawCash(priceOfCoal);
if(cashToBuy > 0.0f){
/* Player had enough cash */
coalCoach.addCoals((long) (amountToBuy));
}
}
}
if(this.KEY_REPAIR) {