@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);
}
}
}