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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addQuest(Quest q)
static boolean
anyQuests()
Are there any questsstatic void
checkCompleted()
checks quests for completion and gives rewards, teleports the chest when appropriate.static Quest
currentQuest()
Returns the next un-completed queststatic void
Initialize()
-
-
-
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 exists
-
-