Package utilities
Class QuestHelper
java.lang.Object
utilities.PlayerTestHelper
utilities.QuestHelper
- Direct Known Subclasses:
ZoneAndPlayerTestImpl
Helper methods for testing quests.
- Author:
- hendrik
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of loaded quest slot identifiers.static IQuestgetQuestBySlot(String slot) Retrieves a loaded quest instance.static booleanChecks if quests are loaded using slot ID.static booleanChecks if quests are loaded using slot ID.static IQuestLoads quest from instance.static IQuestLoads quest from slot.static voidloadQuests(IQuest... qs) Loads quest instances.static voidloadQuests(List<IQuest> qs) Loads quest instances.loadQuestsBySlot(String... slots) Loads quests using slot identifiers.loadRegionalQuests(String region) Loads quests for a region.static voidstatic voidUnloads all loaded quests.static voidunloadQuests(IQuest... qs) Unloads quest instances.static voidunloadQuests(String... slots) Unloads quests using slot identifier strings.static voidunloadQuests(List<IQuest> qs) Unloads quest instances.Methods inherited from class utilities.PlayerTestHelper
addEmptySlots, createPlayer, createPlayerWithOutFit, dumpQuests, equipWithItem, equipWithItem, equipWithItemToSlot, equipWithMoney, equipWithStackableItem, generateCreatureRPClasses, generateEntityRPClasses, generateNPCRPClasses, generatePlayerRPClasses, getPrivateReply, registerPlayer, registerPlayer, registerPlayer, removeAllPlayers, removeNPC, removePlayer, removePlayer, removePlayer, removePlayer, resetNPC, resetNPC, setPastTime, unregisterPlayer
-
Field Details
-
quests
-
-
Constructor Details
-
QuestHelper
public QuestHelper()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
loadQuest
Loads quest from instance. -
loadQuest
Loads quest from slot. -
loadQuests
Loads quest instances. -
loadQuests
Loads quest instances. -
loadRegionalQuests
Loads quests for a region. FIXME: does not always load quest from resource- Parameters:
region- Region identifier.- Returns:
- List of quests loaded for that region.
-
loadQuestsBySlot
Loads quests using slot identifiers. FIXME: does not always load quest from resource- Parameters:
slots- List of slot identifiers.- Returns:
- List of quests loaded that match slot list.
-
unloadQuests
Unloads quest instances. -
unloadQuests
Unloads quest instances. -
unloadQuests
Unloads quests using slot identifier strings. -
unloadQuests
public static void unloadQuests()Unloads all loaded quests. -
getLoadedSlots
Retrieves a list of loaded quest slot identifiers. -
isLoaded
Checks if quests are loaded using slot ID.- Parameters:
qs- Quest instances to be checked.
-
isLoaded
Checks if quests are loaded using slot ID.- Parameters:
slots- Slot IDs to be checked.
-
getQuestBySlot
Retrieves a loaded quest instance.- Parameters:
slot- Quest string identifier.- Returns:
- Quest instance or `null` if not loaded.
-