Groovy Documentation

de.dewarim.goblin.quest
[Groovy] Class Quest

java.lang.Object
  de.dewarim.goblin.quest.Quest

class Quest

Property Summary
static java.lang.Object belongsTo

static java.lang.Object constraints

QuestStep currentStep

java.lang.Boolean finished

java.util.Date finishedDate

QuestStep lastExecutedStep

java.util.Date start

java.lang.Boolean successful

 
Constructor Summary
Quest()

 
Method Summary
void continueQuest(java.lang.String nextStepName)

boolean equals(java.lang.Object o)

QuestStep fetchNextQuestStep()

Find the next QuestStep or, if no more steps are available, set the quest to finished and return null.

int hashCode()

void initializeQuest()

java.lang.Boolean verifyNextStep(QuestStep nextStep)

Check if the given QuestStep is contained in the current QuestStep's list of subsequent quest steps.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

belongsTo

static java.lang.Object belongsTo


constraints

static java.lang.Object constraints


currentStep

QuestStep currentStep


finished

java.lang.Boolean finished


finishedDate

java.util.Date finishedDate


lastExecutedStep

QuestStep lastExecutedStep


start

java.util.Date start


successful

java.lang.Boolean successful


 
Constructor Detail

Quest

Quest()


 
Method Detail

continueQuest

void continueQuest(java.lang.String nextStepName)


equals

boolean equals(java.lang.Object o)


fetchNextQuestStep

QuestStep fetchNextQuestStep()
Find the next QuestStep or, if no more steps are available, set the quest to finished and return null.
Returns:
the next QuestStep - or null.


hashCode

int hashCode()


initializeQuest

void initializeQuest()


verifyNextStep

java.lang.Boolean verifyNextStep(QuestStep nextStep)
Check if the given QuestStep is contained in the current QuestStep's list of subsequent quest steps.
Returns:
true if the given step is a valid QuestStep for the current step.


 

Groovy Documentation