Package org.rspeer.game.component
Class Dialog
- java.lang.Object
-
- org.rspeer.game.component.Dialog
-
public class Dialog extends Object
Provides operations relating to dialogs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dialog.Mode
static class
Dialog.Quick
-
Constructor Summary
Constructors Constructor Description Dialog()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canContinue()
static ComponentQuery
getChatOptions()
static InterfaceComponent
getContinue()
static Dialog.Mode
getMode()
static InterfaceComponent
getPleaseWaitComponent()
static int
getPleaseWaitTick()
static String
getText()
static String
getTitle()
static boolean
isProcessing()
static boolean
isViewingChatOptions()
static boolean
process(int chatOptionIndex)
static boolean
process(String... options)
static boolean
process(Predicate<String> predicate)
static boolean
processContinue()
static void
resetPleaseWaitComponent()
static void
setMode(Dialog.Mode mode)
static void
setPleaseWaitTick(int pleaseWaitTick)
-
-
-
Method Detail
-
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(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)
-
-