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.


Constructor Index

 o ObjectiveAnd()
 

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 haveGoalsBeenMet(Items, double)
have we reached all of the sub-objectives?
 o objective(Objective)
add an objective to our list

Constructor Detail

 o ObjectiveAnd
public ObjectiveAnd()

Method Detail

 o haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
                                double time)
          have we reached all of the sub-objectives?
 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