Package engine

Examples of engine.Station


     
      for(Passenger p : train.getPassengerListToStation(station)) {
        if(!p.isLate()) onTime++;
      }
     
      Station  underTrain = map.getStationAtTile(train.getGridLocation());
      if(underTrain != null && underTrain.equals(station)) {
        stations += "\\#76e639#";
      }
      stations += station.getName() + " (" + onTime + " / " + train.getPassengersToStation(station)+") ";
     
      if(underTrain != null && underTrain.equals(station)) {
        stations += "<--";
      }
      stations += "\n";
    }
   
View Full Code Here


   
    this.passengerEmitter.render();
  }
 
  public void unload() {
    Station station = this.map.getStationAtTile(this.getGridLocation());
   
    if(station != null) {
      ArrayList<Passenger> remove = new ArrayList();
     
      for(Passenger passenger : this.getPassengers()) {
View Full Code Here

  @Override
  public void load() {
    super.load();
    //this.removePassengers((int) (Math.random()*this.capacity));
    //this.addPassengers((int) (Math.random()*this.capacity));
    Station station = this.map.getStationAtTile(this.getGridLocation());
   
    if(station != null) {
      ArrayList<Passenger> remove = new ArrayList();
      for(Passenger p: station.getPassengers()) {
        if(this.getPassengerCount() < this.capacity) {
          this.addPassenger(p);
          //this.addCash(2.50f);
          remove.add(p);
        }
      }
     
      for(Passenger p: remove) {
        station.getPassengers().remove(p);
      }
    }
  }
View Full Code Here

TOP

Related Classes of engine.Station

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.