Class QuestManager

java.lang.Object
com.mygdx.game.Managers.QuestManager

public class QuestManager
extends java.lang.Object
Creates the quests and manages their completion and order
  • Constructor Summary

    Constructors
    Constructor Description
    QuestManager()  
  • Method Summary

    Modifier and Type Method Description
    static void addQuest​(Quest q)  
    static boolean anyQuests()
    Are there any quests
    static void checkCompleted()
    checks quests for completion and gives rewards, teleports the chest when appropriate.
    static Quest currentQuest()
    Returns the next un-completed quest
    static void Initialize()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QuestManager

      public QuestManager()
  • Method Details

    • Initialize

      public static void Initialize()
    • addQuest

      public static void addQuest​(Quest q)
    • checkCompleted

      public static void checkCompleted()
      checks quests for completion and gives rewards, teleports the chest when appropriate. Stops checking the quest after the first no completed quest (prevents quests being completed in any order)
    • currentQuest

      public static Quest currentQuest()
      Returns the next un-completed quest
      Returns:
      the quest null if no un-completed quests found
    • anyQuests

      public static boolean anyQuests()
      Are there any quests
      Returns:
      true if any non completed quest exirs