public class Game
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Game.ClientType
An enum of the different Client types
|
static class |
Game.Crosshair |
static class |
Game.Tab
Enum that represents the different tabs in the game interface
|
Constructor and Description |
---|
Game(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
clientName()
will return the name of the client
|
Game.ClientType |
clientType()
will return the client type the bot is running on : {ClientType.ATLAS, ClientType.ZENYTE}
|
Game.Crosshair |
crosshair() |
java.awt.Dimension |
dimensions()
will return the dimension's of the game client
|
boolean |
escapeClosing()
will return if the client user has escape closing enabled or not
|
java.lang.String |
getClientName()
will return the String name of the client
|
java.lang.String[] |
getMenuActions()
will return the actions in the menu
|
int |
getMenuCount()
will return the amount of menu options are in the menu
|
java.lang.String[] |
getMenuOptions()
will return the options in the menu
|
boolean |
inViewport(net.runelite.api.Point p)
If a point is inside of the dimensions of the game client
|
boolean |
inViewport(java.awt.Rectangle rect)
If a rectangle is inside of the dimensions of the game client
|
net.runelite.api.coords.WorldPoint |
mapOffset()
will return the base client location
|
java.awt.Rectangle |
menuBounds()
will return a rectangle with the bounds of the menu if it is open
|
int |
menuHeight()
will return the height of the menu
|
boolean |
menuOpened()
will return {true} if the menu is opened
|
int |
menuWidth()
will return the width of the menu
|
int |
menuX()
will return the x canvas point of the menu
|
int |
menuY()
will return the y canvas point of the menu
|
boolean |
pointInViewport(double x,
double y)
If a (x,y) point is inside of the dimensions of the game client
|
boolean |
pointInViewport(int x,
int y)
If a (x,y) point is inside of the dimensions of the game client
|
boolean |
resizable()
will return if the client is in resizeable mode
|
Game.Tab |
tab()
will return the current tab you have opened
|
boolean |
tab(Game.Tab tab)
will switch to the specified {tab} and return {true} if successful and {false} otherwise
|
int |
tileHeight(int x,
int y) |
public Game(ClientContext ctx)
public java.lang.String clientName()
public Game.ClientType clientType()
public boolean menuOpened()
public java.awt.Rectangle menuBounds()
public int menuX()
public int menuY()
public int menuWidth()
public int menuHeight()
public int tileHeight(int x, int y)
public int getMenuCount()
public java.lang.String[] getMenuOptions()
public java.lang.String[] getMenuActions()
public java.awt.Dimension dimensions()
public boolean inViewport(java.awt.Rectangle rect)
rect
- public boolean inViewport(net.runelite.api.Point p)
p
- public boolean pointInViewport(double x, double y)
x,
- y (double)public boolean pointInViewport(int x, int y)
x,
- y (int)public net.runelite.api.coords.WorldPoint mapOffset()
public boolean escapeClosing()
public boolean tab(Game.Tab tab)
tab
- public Game.Tab tab()
public boolean resizable()
public java.lang.String getClientName()
public Game.Crosshair crosshair()