java.lang.Object
com.csse3200.game.components.quests.Quest

public class Quest extends Object
A basic Quest class that stores quest and subtask progression (# of subtasks completed), descriptions and hints.
  • Method Details

    • getQuestName

      public String getQuestName()
      Returns quest name.
    • getTasks

      public List<Task> getTasks()
      Returns task array for quest subtasks.
    • isQuestCompleted

      public boolean isQuestCompleted()
      Returns true if quest is completed.
    • getProgression

      public int getProgression()
      Returns number of quest subtasks completed.
    • getCurrentTaskDescription

      public String getCurrentTaskDescription()
      Returns the description of the current subtask being completed for a test or "QUEST COMPLETED" if the quest is completed.
    • getCurrentTaskHint

      public String getCurrentTaskHint()
      Returns the hint for the current subtask being completed for a test or "QUEST COMPLETED" if the quest is completed.
    • progressQuest

      public boolean progressQuest(Entity player)
      Progress (increments) number of quest subtasks completed.
    • isFailed

      public boolean isFailed()
      Returns true if quest is failed.
    • failQuest

      public void failQuest()
      Earmarks quest as having failed.
    • getQuestDescription

      public String getQuestDescription()
      Returns a description of the quest.
    • getNumTasksToComplete

      public int getNumTasksToComplete()
      Returns the number of tasks to be completed for an individual test.
    • getNumQuestTasks

      public int getNumQuestTasks()
      Returns the number of tasks for a quest.
    • isActive

      public boolean isActive()
      Returns true if the quest is active
    • setActive

      public void setActive(boolean active)
      Sets the active state of the quest.
      Parameters:
      active - a boolean value indicating whether the quest is active or not.
    • getQuestDialogue

      public List<DialogueKey> getQuestDialogue()
      Returns a list of DialogueKeys indicating the quest dialogue.
      Returns:
      the list of quest dialogue
    • getFollowQuests

      public String[] getFollowQuests()
      Returns a list of strings indicating precursor quests.
      Returns:
      the list of quests that must be completed for this one to become active