All Packages Class Hierarchy This Package Previous Next Index
Class com.loki3.cyber.server.ObjectiveAnd
java.lang.Object
|
+----com.loki3.cyber.server.ObjectiveBase
|
+----com.loki3.cyber.server.ObjectiveAnd
- public class ObjectiveAnd
- extends ObjectiveBase
If all of the sub-objectives are met, then
the overall objective has been met.
Whether or not scenario ends is up to this class,
not any of the sub-objectives.
ObjectiveAnd()
-
getGoal()
- description of what it will take to meet current goal
getMessage()
- explanation for finished objective
getNext()
- there is no next objective
haveGoalsBeenMet(Items, double)
- have we reached all of the sub-objectives?
objective(Objective)
- add an objective to our list
ObjectiveAnd
public ObjectiveAnd()
haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
double time)
have we reached all of the sub-objectives?
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