Package utilities
Class NPCTestHelper
java.lang.Object
utilities.NPCTestHelper
- Direct Known Subclasses:
SpeakerNPCTestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all NPCs currently in world.static voidLoads shops configured in XML and configures specific NPC merchants.static booleanRemoves all NPCs from world;static booleanRemoves an NPC from world.
-
Constructor Details
-
NPCTestHelper
public NPCTestHelper()
-
-
Method Details
-
getAllNPCs
Retrieves all NPCs currently in world. -
removeNPC
Removes an NPC from world.- Parameters:
npc- NPC to be removed.- Returns:
trueif NPC was removed.
-
removeAllNPCs
public static boolean removeAllNPCs()Removes all NPCs from world;- Returns:
trueif world contains no NPCs.
-
loadShops
Loads shops configured in XML and configures specific NPC merchants.- Parameters:
npcNames- List of NPC names.
-