jfreerails.world.terrain
Class Production

java.lang.Object
  extended by 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

Field Summary
private  int cargoType
           
private  int rate
          The number of units per year (40 units = 1 car load).
private static long serialVersionUID
           
 
Constructor Summary
Production(int type, int r)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCargoType()
           
 int getRate()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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).

Constructor Detail

Production

public Production(int type,
                  int r)
Method Detail

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()