com.TeamHEC.LocomotionCommotion.Goal
Class CargoGoal

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.Goal.Goal
      extended by com.TeamHEC.LocomotionCommotion.Goal.SpecialGoal
          extended by com.TeamHEC.LocomotionCommotion.Goal.CargoGoal
All Implemented Interfaces:
RouteListener

public class CargoGoal
extends SpecialGoal

Author:
Eashan Maheshwari

Field Summary
 
Fields inherited from class com.TeamHEC.LocomotionCommotion.Goal.Goal
goalActor
 
Constructor Summary
CargoGoal(Station startStation, Station finalStation, Station stationVia, java.lang.String cargo, int reward2)
          Initialises the goal.
 
Method Summary
 
Methods inherited from class com.TeamHEC.LocomotionCommotion.Goal.Goal
assignTrain, getCargo, getFStation, getReward, getSStation, getStartTurn, getTrain, getTurnLimit, getVia, goalComplete, goalFailed, isSpecial, setActor, setSpecial, stationPassed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CargoGoal

public CargoGoal(Station startStation,
                 Station finalStation,
                 Station stationVia,
                 java.lang.String cargo,
                 int reward2)
Initialises the goal.

Parameters:
startStation - The Station the goal starts from
finalStation - The Station the goal ends at
stationVia - The Station the goal wants you to travel via
cargo - The type of cargo the train is carrying
reward2 - The reward (currently Gold) you get for completing the Goal