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.


Constructor Index

 o ObjectiveOr()
 

Method Index

 o getGoal()
description of what it will take to meet current goal
 o getMessage()
explanation for finished objective
 o getNext()
there is no next objective
 o getRewards()
get the list of Reward objects for meeting objective
 o haveGoalsBeenMet(Items, double)
have we reached any of the sub-objectives?
 o isEndOfScenario()
if objective that was met says so, scenario is over
 o objective(Objective)
add an objective to our list

Constructor Detail

 o ObjectiveOr
public ObjectiveOr()

Method Detail

 o haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
                                double time)
          have we reached any of the sub-objectives?
 o isEndOfScenario
public boolean isEndOfScenario()
          if objective that was met says so, scenario is over
Overrides:
isEndOfScenario in class ObjectiveBase
 o getRewards
public java.util.Enumeration getRewards()
          get the list of Reward objects for meeting objective
Overrides:
getRewards in class ObjectiveBase
 o getNext
public Objective getNext()
          there is no next objective
Overrides:
getNext in class ObjectiveBase
 o getGoal
public java.lang.String getGoal()
          description of what it will take to meet current goal
Overrides:
getGoal in class ObjectiveBase
 o getMessage
public java.lang.String getMessage()
          explanation for finished objective
Overrides:
getMessage in class ObjectiveBase
 o objective
public void objective(Objective objective)
          add an objective to our list

All Packages  Class Hierarchy  This Package  Previous  Next  Index