jfreerails.world.terrain
Class Consumption
java.lang.Object
jfreerails.world.terrain.Consumption
- All Implemented Interfaces:
- java.io.Serializable, FreerailsSerializable
public class Consumption
- extends java.lang.Object
- implements FreerailsSerializable
This class represents the demand for a certain cargo for consumption.
- Author:
- Luke
- See Also:
- Serialized Form
|
Field Summary |
private int |
cargoType
|
private int |
prerequisite
The number of tiles that must be within the station radius before the
station demands the cargo. |
private static long |
serialVersionUID
|
| 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
prerequisite
private final int prerequisite
- The number of tiles that must be within the station radius before the
station demands the cargo.
Consumption
public Consumption(int ct,
int pq)
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()
getPrerequisite
public int getPrerequisite()