jfreerails.world.terrain
Class Consumption

java.lang.Object
  extended by 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
           
 
Constructor Summary
Consumption(int ct, int pq)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCargoType()
           
 int getPrerequisite()
           
 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

prerequisite

private final int prerequisite
The number of tiles that must be within the station radius before the station demands the cargo.

Constructor Detail

Consumption

public Consumption(int ct,
                   int pq)
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()

getPrerequisite

public int getPrerequisite()