Package org.rspeer.game
Class Game
java.lang.Object
org.rspeer.game.Game
Provides general game state operations
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMouseListener
(BotMouseListener listener) static void
static <T> T
Executes code on the game threadstatic <T> CompletableFuture<T>
Executes code on the game threadstatic AccountType
static Predicate<MenuActionEvent>
static Canvas
static RSClient
static RSClientPreferences
static int
static EventDispatcher
static EventMediator
static List<BotMouseListener>
static Proxy
getProxy()
static int
static int
getState()
static int
getTick()
static boolean
static boolean
static boolean
static boolean
static void
queueAction
(Action action) static void
queueAction
(MenuAction action) static void
removeMouseListener
(BotMouseListener listener) static void
setActionFilter
(Predicate<MenuActionEvent> actionFilter) static void
static void
setFps
(int fps) static void
static void
setProxyCredentials
(Pair<String, String> proxyCredentials) static void
setVerboseMenuActions
(boolean verboseMenuActions)
-
Field Details
-
STATE_LOADING_GAME
public static final int STATE_LOADING_GAME- See Also:
-
STATE_CREDENTIALS_SCREEN
public static final int STATE_CREDENTIALS_SCREEN- See Also:
-
STATE_LOGGING_IN
public static final int STATE_LOGGING_IN- See Also:
-
STATE_LOADING_REGION
public static final int STATE_LOADING_REGION- See Also:
-
STATE_IN_GAME
public static final int STATE_IN_GAME- See Also:
-
STATE_CONNECTION_LOST
public static final int STATE_CONNECTION_LOST- See Also:
-
STATE_HOPPING_WORLD
public static final int STATE_HOPPING_WORLD- See Also:
-
-
Constructor Details
-
Game
public Game()
-
-
Method Details
-
getClient
-
getRevision
public static int getRevision() -
setClient
-
setFps
public static void setFps(int fps) -
getTick
public static int getTick() -
getAccountType
-
addMouseListener
-
removeMouseListener
-
getMouseListeners
-
queueAction
-
queueAction
-
getClientPreferences
-
getState
public static int getState() -
isLoggedIn
public static boolean isLoggedIn() -
isOnCredentialsScreen
public static boolean isOnCredentialsScreen() -
isLoadingRegion
public static boolean isLoadingRegion() -
getEngineCycle
public static int getEngineCycle() -
getCanvas
-
getEventMediator
-
getEventDispatcher
-
call
Executes code on the game thread- Type Parameters:
T
- The return type- Parameters:
callable
- The task to call- Returns:
- The value returned from the task, or
null
-
callAsync
Executes code on the game thread- Type Parameters:
T
- The return type- Returns:
- The value returned from the task, or
null
-
call
-
getProxy
-
setProxy
-
getProxyCredentials
-
setProxyCredentials
-
getActionFilter
-
setActionFilter
-
isVerboseMenuActions
public static boolean isVerboseMenuActions() -
setVerboseMenuActions
public static void setVerboseMenuActions(boolean verboseMenuActions)
-