Class DialogueService


  • @Singleton
    public class DialogueService
    extends java.lang.Object
    Visible dialogue actions plus packet-only input resume commands.
    • Method Detail

      • requestAmount

        public AmountInputService.Operation requestAmount​(int amount,
                                                          int mode,
                                                          WidgetRef origin,
                                                          java.lang.Runnable open,
                                                          java.lang.String promptWord)
        Opens X and waits for its own numeric prompt before native submission.
      • canContinue

        public boolean canContinue()
      • hasOptions

        public boolean hasOptions()
      • snapshot

        public DialogueService.Snapshot snapshot()
        Immutable visible dialogue state for transition checks; no game action.
      • containsText

        public boolean containsText​(java.lang.String expected)
        Match a known speaker/body/header before consuming a delayed dialogue step.
      • hasOption

        public boolean hasOption​(java.lang.String text)
      • continueDialogue

        public void continueDialogue()
      • options

        public java.util.List<WidgetRef> options()
      • choose

        public void choose​(java.lang.String text)
      • choose

        public void choose​(int oneBasedIndex)
      • enterAmount

        public void enterAmount​(int amount)
        Submit only an already visible native numeric input. Prefer requestAmount for delayed X.
      • enterName

        public void enterName​(java.lang.String name)
      • enterObject

        public void enterObject​(int itemId)
      • searchResults

        public java.util.List<SearchResult> searchResults()
        The entries listed under the open chatbox item search, in the order shown.
      • choose

        public void choose​(SearchResult result)
        Selects an entry from the item search. With the mouse, the cursor scrolls the list until the entry is on screen before clicking it.