Class Dialog

java.lang.Object
org.rspeer.game.component.Dialog

public class Dialog extends Object
Provides operations relating to dialogs
  • Constructor Details

    • Dialog

      public Dialog()
  • Method Details

    • getPleaseWaitComponent

      public static InterfaceComponent getPleaseWaitComponent()
    • resetPleaseWaitComponent

      public static void resetPleaseWaitComponent()
    • getContinue

      public static InterfaceComponent getContinue()
    • canContinue

      public static boolean canContinue()
    • processContinue

      public static boolean processContinue()
    • isViewingChatOptions

      public static boolean isViewingChatOptions()
    • isProcessing

      public static boolean isProcessing()
    • process

      public static boolean process(Predicate<String> predicate)
    • process

      public static boolean process(int chatOptionIndex)
    • getTitle

      public static String getTitle()
    • getText

      public static String getText()
    • process

      public static boolean process(String... options)
      Parameters:
      options - Options to select
      Returns:
      true if an option was successfully interacted with or is already being interacted with
    • getChatOptions

      public static ComponentQuery getChatOptions()
    • getMode

      public static Dialog.Mode getMode()
    • setMode

      public static void setMode(Dialog.Mode mode)
    • getPleaseWaitTick

      public static int getPleaseWaitTick()
    • setPleaseWaitTick

      public static void setPleaseWaitTick(int pleaseWaitTick)