Package utilities

Class SpeakerNPCTestHelper

java.lang.Object
utilities.NPCTestHelper
utilities.SpeakerNPCTestHelper

public abstract class SpeakerNPCTestHelper extends NPCTestHelper
Provides convenience methods for SpeakerNPC creation. the Created NPC extends

SpeakerNPC and overrides registerTheNewNameInTheConversationParserWordList to avoid database access

  • Constructor Details

    • SpeakerNPCTestHelper

      public SpeakerNPCTestHelper()
  • Method Details

    • createSpeakerNPC

      public static SpeakerNPC createSpeakerNPC()
    • createSpeakerNPC

      public static SpeakerNPC createSpeakerNPC(String name)
    • getSpeakerNPC

      public static SpeakerNPC getSpeakerNPC(String name)
    • removeSpeakerNPC

      public static boolean removeSpeakerNPC(SpeakerNPC npc)
    • removeSpeakerNPC

      public static boolean removeSpeakerNPC(String name)
    • getReply

      public static String getReply(SpeakerNPC npc)
      Query the events for public visible text messages.
      Parameters:
      npc - The entity who's events should be checked.
      Returns:
      Most recent text message.
    • getReplies

      public static List<String> getReplies(SpeakerNPC npc)
      Query the events for public visible text messages.
      Parameters:
      npc - The entity who's events should be checked.
      Returns:
      List of text messages.
    • getOrderedReplies

      public static List<String> getOrderedReplies(SpeakerNPC npc)
      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.