All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.loki3.cyber.server.Objective


public interface Objective
Describes goals for a particular scenario.


Method Index

 o getGoal()
description of what it will take to meet this goal
 o getMessage()
description of how goals were met
 o getNext()
if there are multiple objectives, this gets the next one, otherwise it returns null
 o getRewards()
get the list of Reward objects for meeting objective
 o haveGoalsBeenMet(Items, double)
have the goals of this objective been met?
 o isEndOfScenario()
should the scenario be over now?

Method Detail

 o haveGoalsBeenMet
public boolean haveGoalsBeenMet(com.loki3.pa.Items items,
                                double time)
          have the goals of this objective been met?
Parameters:
items - list of items in the game, for checking locations
time - elapsed ticks since start of scenario
Returns:
true if objective goals have been met
 o isEndOfScenario
public boolean isEndOfScenario()
          should the scenario be over now?
 o getRewards
public java.util.Enumeration getRewards()
          get the list of Reward objects for meeting objective
 o getNext
public Objective getNext()
          if there are multiple objectives, this gets the next one, otherwise it returns null
 o getGoal
public java.lang.String getGoal()
          description of what it will take to meet this goal
 o getMessage
public java.lang.String getMessage()
          description of how goals were met

All Packages  Class Hierarchy  This Package  Previous  Next  Index