jfreerails.world.terrain
Class Production
java.lang.Object
jfreerails.world.terrain.Production
- All Implemented Interfaces:
- java.io.Serializable, FreerailsSerializable
public class Production
- extends java.lang.Object
- implements FreerailsSerializable
This class represents the production of a raw material on a tile.
- Author:
- Luke
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
cargoType
private final int cargoType
rate
private final int rate
- The number of units per year (40 units = 1 car load).
Production
public Production(int type,
int r)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getCargoType
public int getCargoType()
getRate
public int getRate()