Package com.mygdx.game.Managers
Class QuestManager
- java.lang.Object
-
- com.mygdx.game.Managers.QuestManager
-
public class QuestManager extends java.lang.ObjectCreates the quests and manages their completion and order
-
-
Field Summary
Fields Modifier and Type Field Description static intnumCompleted
-
Constructor Summary
Constructors Constructor Description QuestManager()
-
Method Summary
All Methods Static Methods Concrete Methods 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()
-
-
-
Method Detail
-
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
-
-