|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfreerails.server.CargoAtStationsGenerator
public class CargoAtStationsGenerator
This class loops over the list of stations and adds cargo depending on what the surrounding tiles supply.
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 |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public CargoAtStationsGenerator()
Method Detail |
---|
public void update(World w, MoveReceiver moveReceiver)
int calculateAmountToAdd(int amountSuppliedPerYear, int month)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |