All Packages Class Hierarchy This Package Previous Next Index
Interface com.loki3.cyber.server.Objective
- public interface Objective
Describes goals for a particular scenario.
getGoal()
- description of what it will take to meet this goal
getMessage()
- description of how goals were met
getNext()
- if there are multiple objectives, this gets the next one,
otherwise it returns null
getRewards()
- get the list of Reward objects for meeting objective
haveGoalsBeenMet(Items, double)
- have the goals of this objective been met?
isEndOfScenario()
- should the scenario be over now?
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
isEndOfScenario
public boolean isEndOfScenario()
should the scenario be over now?
getRewards
public java.util.Enumeration getRewards()
get the list of Reward objects for meeting objective
getNext
public Objective getNext()
if there are multiple objectives, this gets the next one,
otherwise it returns null
getGoal
public java.lang.String getGoal()
description of what it will take to meet this goal
getMessage
public java.lang.String getMessage()
description of how goals were met
All Packages Class Hierarchy This Package Previous Next Index