com.TeamHEC.LocomotionCommotion.Resource
Class Fuel

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.Resource.Resource
      extended by com.TeamHEC.LocomotionCommotion.Resource.Fuel
Direct Known Subclasses:
Coal, Electric, Nuclear, Oil

public abstract class Fuel
extends Resource

Author:
Matthew Taylor The object representing Fuel. All fuel types inherit from this.

Field Summary
 int cost
           
 
Constructor Summary
Fuel(int value, java.lang.String type)
          Initialises Fuel
 
Method Summary
 
Methods inherited from class com.TeamHEC.LocomotionCommotion.Resource.Resource
addValue, addValue, getType, getValue, setValue, subValue, subValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cost

public int cost
Constructor Detail

Fuel

public Fuel(int value,
            java.lang.String type)
Initialises Fuel

Parameters:
value - The initial value of the object.
type - The type of Fuel as a String.