Package com.mygdx.game.Managers
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 voidaddQuest(Quest q)static booleananyQuests()Are there any questsstatic voidcheckCompleted()checks quests for completion and gives rewards, teleports the chest when appropriate.static QuestcurrentQuest()Returns the next un-completed queststatic voidInitialize()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
-
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
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
-