public class QuestRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
GSON |
Constructor and Description |
---|
QuestRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addQuest(Quest quest) |
void |
createOrUpdateQuest(Quest quest) |
void |
deleteQuest(Quest quest) |
IAction |
getAction(java.lang.String id) |
static QuestRegistry |
getInstance() |
IObjective |
getObjective(java.lang.String id) |
Quest |
getQuest(java.lang.String filepath) |
java.util.Collection<Quest> |
getQuestCollection() |
java.util.ArrayList<QuestElement> |
getQuestElements() |
java.util.Set<java.lang.String> |
getQuestFilepaths(boolean underscoreSpaces) |
java.util.HashMap<java.lang.String,Quest> |
getQuests() |
static void |
registerAction(IAction action) |
static void |
registerActions(IAction... actions) |
void |
registerClasses() |
static void |
registerObjective(IObjective objective) |
static void |
registerObjectives(IObjective... objectives) |
void |
removeQuest(Quest quest) |
public static QuestRegistry getInstance()
public java.util.HashMap<java.lang.String,Quest> getQuests()
public void addQuest(Quest quest)
public void createOrUpdateQuest(Quest quest)
public void removeQuest(Quest quest)
public void deleteQuest(Quest quest)
public Quest getQuest(java.lang.String filepath)
public IAction getAction(java.lang.String id)
public IObjective getObjective(java.lang.String id)
public java.util.Collection<Quest> getQuestCollection()
public java.util.ArrayList<QuestElement> getQuestElements()
public java.util.Set<java.lang.String> getQuestFilepaths(boolean underscoreSpaces)
public void registerClasses()
public static void registerActions(IAction... actions)
public static void registerObjectives(IObjective... objectives)
public static void registerAction(IAction action)
public static void registerObjective(IObjective objective)