All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.loki3.cyber.server.ObjectiveChain

java.lang.Object
    |
    +----com.loki3.cyber.server.ObjectiveChain

public class ObjectiveChain
extends java.lang.Object
implements Objective
Chains together a series of objectives. When one objective is done, the next one is current. When the last objective is done, scenario is done.


Constructor Index

 o ObjectiveChain()
 

Method Index

 o getGoal()
description of what it will take to meet current goal
 o getMessage()
last explanation for finished objective
 o getNext()
gets current objective right after a call to haveGoalsBeenMet
 o getRewards()
get the list of Reward objects for meeting objective
 o haveGoalsBeenMet(Items, double)
have we reached the current objective? if so, step to the next objective.
 o isEndOfScenario()
once all objectives met, scenario is over
 o objective(Objective)
add an objective to our list
 o setRewards(Rewards)
set the list of Reward objects for meeting objective

Constructor Detail

 o ObjectiveChain
public ObjectiveChain()

Method Detail

 o haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
                                double time)
          have we reached the current objective? if so, step to the next objective.
 o isEndOfScenario
public boolean isEndOfScenario()
          once all objectives met, scenario is over
 o getRewards
public java.util.Enumeration getRewards()
          get the list of Reward objects for meeting objective
 o getNext
public Objective getNext()
          gets current objective right after a call to haveGoalsBeenMet
 o getGoal
public java.lang.String getGoal()
          description of what it will take to meet current goal
 o getMessage
public java.lang.String getMessage()
          last explanation for finished objective
 o objective
public void objective(Objective objective)
          add an objective to our list
 o setRewards
public void setRewards(Rewards rewards)
          set the list of Reward objects for meeting objective

All Packages  Class Hierarchy  This Package  Previous  Next  Index