jfreerails.controller
Class ProcessCargoAtStationMoveGenerator

java.lang.Object
  extended by jfreerails.controller.ProcessCargoAtStationMoveGenerator

public class ProcessCargoAtStationMoveGenerator
extends java.lang.Object

This class generates Moves that pay the player for delivering the cargo.

Author:
Luke Lindsay

Field Summary
private static int MAGIC_NUMBER
          Determines how much the player gets for delivering cargo.
 
Constructor Summary
ProcessCargoAtStationMoveGenerator()
           
 
Method Summary
static java.util.ArrayList<Move> processCargo(ReadOnlyWorld w, CargoBundle bundle, int stationID, FreerailsPrincipal p, int trainId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_NUMBER

private static final int MAGIC_NUMBER
Determines how much the player gets for delivering cargo. Changed from 100 to 75 to fix bug 910132 (Too easy to make money!)

See Also:
Constant Field Values
Constructor Detail

ProcessCargoAtStationMoveGenerator

public ProcessCargoAtStationMoveGenerator()
Method Detail

processCargo

public static java.util.ArrayList<Move> processCargo(ReadOnlyWorld w,
                                                     CargoBundle bundle,
                                                     int stationID,
                                                     FreerailsPrincipal p,
                                                     int trainId)