All Packages Class Hierarchy This Package Previous Next Index
Class com.loki3.cyber.server.ObjectiveOr
java.lang.Object
|
+----com.loki3.cyber.server.ObjectiveBase
|
+----com.loki3.cyber.server.ObjectiveOr
- public class ObjectiveOr
- extends ObjectiveBase
If any of the sub-objectives are met, then
the overall objective has been met.
Objective that was met determines if scenario
should end.
ObjectiveOr()
-
getGoal()
- description of what it will take to meet current goal
getMessage()
- explanation for finished objective
getNext()
- there is no next objective
getRewards()
- get the list of Reward objects for meeting objective
haveGoalsBeenMet(Items, double)
- have we reached any of the sub-objectives?
isEndOfScenario()
- if objective that was met says so, scenario is over
objective(Objective)
- add an objective to our list
ObjectiveOr
public ObjectiveOr()
haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
double time)
have we reached any of the sub-objectives?
isEndOfScenario
public boolean isEndOfScenario()
if objective that was met says so, scenario is over
- Overrides:
- isEndOfScenario in class ObjectiveBase
getRewards
public java.util.Enumeration getRewards()
get the list of Reward objects for meeting objective
- Overrides:
- getRewards in class ObjectiveBase
getNext
public Objective getNext()
there is no next objective
- Overrides:
- getNext in class ObjectiveBase
getGoal
public java.lang.String getGoal()
description of what it will take to meet current goal
- Overrides:
- getGoal in class ObjectiveBase
getMessage
public java.lang.String getMessage()
explanation for finished objective
- Overrides:
- getMessage in class ObjectiveBase
objective
public void objective(Objective objective)
add an objective to our list
All Packages Class Hierarchy This Package Previous Next Index