Package utilities
Class SpeakerNPCTestHelper
java.lang.Object
utilities.NPCTestHelper
utilities.SpeakerNPCTestHelper
Provides convenience methods for SpeakerNPC creation. the Created NPC extends
SpeakerNPC and overrides registerTheNewNameInTheConversationParserWordList to
avoid database access
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeakerNPCstatic SpeakerNPCcreateSpeakerNPC(String name) Query the events for public visible text messages in order of appearance.getReplies(SpeakerNPC npc) Query the events for public visible text messages.static StringgetReply(SpeakerNPC npc) Query the events for public visible text messages.static SpeakerNPCgetSpeakerNPC(String name) static booleanstatic booleanremoveSpeakerNPC(String name) Methods inherited from class utilities.NPCTestHelper
getAllNPCs, loadShops, removeAllNPCs, removeNPC
-
Constructor Details
-
SpeakerNPCTestHelper
public SpeakerNPCTestHelper()
-
-
Method Details
-
createSpeakerNPC
-
createSpeakerNPC
-
getSpeakerNPC
-
removeSpeakerNPC
-
removeSpeakerNPC
-
getReply
Query the events for public visible text messages.- Parameters:
npc- The entity who's events should be checked.- Returns:
- Most recent text message.
-
getReplies
Query the events for public visible text messages.- Parameters:
npc- The entity who's events should be checked.- Returns:
- List of text messages.
-
getOrderedReplies
Query the events for public visible text messages in order of appearance.- Parameters:
npc- The entity who's events should be checked.- Returns:
- List of text messages.
-