Package com.runemate.game.api.hybrid
Class RuneScape
- java.lang.Object
-
- com.runemate.game.api.hybrid.RuneScape
-
public final class RuneScape extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuneScape.EngineState
Known Engine States.static interface
RuneScape.LoginState
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCurrentCycle()
The amount of cycles since the applet began executing.static RuneScape.EngineState
getEngineState()
static int
getFps()
Gets the current fps of the game's canvasstatic int
getLoginState()
static double
getVersion()
Gets the current game version (such as 790.1)static boolean
hasCrashed()
static boolean
isCutscenePlaying()
static boolean
isDisconnected()
static boolean
isLoggedIn()
Gets whether or not you are logged into the game (this includes when the map is loading)static boolean
isLoggingIn()
static boolean
isMapLoaded()
Gets whether or not the region is loaded on OSRSstatic boolean
isMapLoading()
Gets whether or not a new region is loading on OSRSstatic boolean
isReconnecting()
static boolean
isStarting()
static boolean
isSwitchingWorlds()
static boolean
logout()
Logs the player completely out of the game.static boolean
logout(boolean lobby)
Logs the player out of the game.
-
-
-
Method Detail
-
getFps
public static int getFps()
Gets the current fps of the game's canvas
-
getCurrentCycle
public static int getCurrentCycle()
The amount of cycles since the applet began executing. Each cycle is 20ms in duration.
-
getVersion
public static double getVersion()
Gets the current game version (such as 790.1)- Returns:
- The current game version as a double
-
isLoggedIn
public static boolean isLoggedIn()
Gets whether or not you are logged into the game (this includes when the map is loading)
-
isMapLoaded
@OSRSOnly public static boolean isMapLoaded()
Gets whether or not the region is loaded on OSRS
-
isMapLoading
@OSRSOnly public static boolean isMapLoading()
Gets whether or not a new region is loading on OSRS
-
isLoggingIn
@OSRSOnly public static boolean isLoggingIn()
-
isReconnecting
@OSRSOnly public static boolean isReconnecting()
-
isSwitchingWorlds
@OSRSOnly public static boolean isSwitchingWorlds()
-
isStarting
@OSRSOnly public static boolean isStarting()
-
hasCrashed
@OSRSOnly public static boolean hasCrashed()
-
getEngineState
@OSRSOnly public static RuneScape.EngineState getEngineState()
-
isCutscenePlaying
@OSRSOnly public static boolean isCutscenePlaying()
-
logout
public static boolean logout()
Logs the player completely out of the game.- Returns:
- true if logged out
-
logout
public static boolean logout(boolean lobby)
Logs the player out of the game. Lobby can be specified but it's for RS3 only.- Parameters:
lobby
- whether to go to the lobby on RS3, otherwise it's ignored.- Returns:
- true if logged out
-
getLoginState
public static int getLoginState()
-
isDisconnected
public static boolean isDisconnected()
-
-