jfreerails.server
Class CargoAtStationsGenerator

java.lang.Object
  extended by jfreerails.server.CargoAtStationsGenerator
All Implemented Interfaces:
java.io.Serializable, FreerailsServerSerializable

public class CargoAtStationsGenerator
extends java.lang.Object
implements FreerailsServerSerializable

This class loops over the list of stations and adds cargo depending on what the surrounding tiles supply.

Author:
Luke
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
CargoAtStationsGenerator()
           
 
Method Summary
(package private)  int calculateAmountToAdd(int amountSuppliedPerYear, int month)
           
 void update(World w, MoveReceiver moveReceiver)
          Call this method once a month.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

CargoAtStationsGenerator

public CargoAtStationsGenerator()
Method Detail

update

public void update(World w,
                   MoveReceiver moveReceiver)
Call this method once a month.


calculateAmountToAdd

int calculateAmountToAdd(int amountSuppliedPerYear,
                         int month)