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.
ObjectiveChain()
-
getGoal()
- description of what it will take to meet current goal
getMessage()
- last explanation for finished objective
getNext()
- gets current objective right after a call to haveGoalsBeenMet
getRewards()
- get the list of Reward objects for meeting objective
haveGoalsBeenMet(Items, double)
- have we reached the current objective?
if so, step to the next objective.
isEndOfScenario()
- once all objectives met, scenario is over
objective(Objective)
- add an objective to our list
setRewards(Rewards)
- set the list of Reward objects for meeting objective
ObjectiveChain
public ObjectiveChain()
haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
double time)
have we reached the current objective?
if so, step to the next objective.
isEndOfScenario
public boolean isEndOfScenario()
once all objectives met, scenario is over
getRewards
public java.util.Enumeration getRewards()
get the list of Reward objects for meeting objective
getNext
public Objective getNext()
gets current objective right after a call to haveGoalsBeenMet
getGoal
public java.lang.String getGoal()
description of what it will take to meet current goal
getMessage
public java.lang.String getMessage()
last explanation for finished objective
objective
public void objective(Objective objective)
add an objective to our list
setRewards
public void setRewards(Rewards rewards)
set the list of Reward objects for meeting objective
All Packages Class Hierarchy This Package Previous Next Index