Package TrackRider

Examples of TrackRider.CoalCoach


        }
      }
    }

    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) {
View Full Code Here

TOP

Related Classes of TrackRider.CoalCoach

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.