Package com.epicbot.api.shared.methods
Interface ICalculationsAPI
-
public interface ICalculationsAPI
-
-
Field Summary
Fields Modifier and Type Field Description static int[]
COSINE
static double
MAX_WALKABLE_DIST
static int
MAX_Z
The max allowed plane by the gamestatic int
MINIMAP_TILE_SIZE
static int[]
SINE
static int
TILE_FLAG_BRIDGE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
distanceBetween(int x, int y, int x1, int y1)
double
distanceBetween(Locatable locatable1, Locatable locatable2)
double
distanceBetween(java.awt.Point point1, java.awt.Point point2)
double
distanceTo(int x, int y)
double
distanceTo(int x, int y, int plane)
double
distanceTo(Locatable locatable)
int
getSceneSize()
int
getTileBits()
int
getTileHeight(int x, int z, int plane)
int
getTileMask()
int
getTileSize()
boolean
isClickable(int x, int y)
Returns whether or not the given point is clickable on the viewport of the game (seeIGameAPI.getViewportWidth()
andIGameAPI.getViewportHeight()
).boolean
isClickable(java.awt.Point point)
Returns whether or not the given point is clickable on the viewport of the game (seeIGameAPI.getViewportWidth()
andIGameAPI.getViewportWidth()
).boolean
isOnMap(Locatable locatable)
boolean
isOnScreen(int x, int y)
Returns whether or not the given point is on screen (the entire width and height of the game client).boolean
isOnScreen(java.awt.Point point)
Returns whether or not the given point is on screen (the entire width and height of the game client).void
modelToScreen(int end, int x3dCenter, int y3dCenter, int z3dCenter, int rotate, int[] x3d, int[] y3d, int[] z3d, int[] x2d, int[] y2d)
java.awt.Point
tileToMap(Locatable locatable)
java.awt.Point
tileToScreen(Tile tile, double dX, double dY, int height)
java.awt.Point
tileToScreen(Tile tile, int height)
java.awt.Point
worldToMap(double x, double y)
java.awt.Point
worldToScreen(int x, int y, int z)
java.awt.Point
worldToScreen(int x, int y, int plane, int zOffset)
-
-
-
Field Detail
-
SINE
static final int[] SINE
-
COSINE
static final int[] COSINE
-
MINIMAP_TILE_SIZE
static final int MINIMAP_TILE_SIZE
- See Also:
- Constant Field Values
-
MAX_Z
static final int MAX_Z
The max allowed plane by the game- See Also:
- Constant Field Values
-
TILE_FLAG_BRIDGE
static final int TILE_FLAG_BRIDGE
- See Also:
- Constant Field Values
-
MAX_WALKABLE_DIST
static final double MAX_WALKABLE_DIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
isOnScreen
boolean isOnScreen(java.awt.Point point)
Returns whether or not the given point is on screen (the entire width and height of the game client).- Parameters:
point
- the point- Returns:
true
if the point is on screen, otherwisefalse
-
isOnScreen
boolean isOnScreen(int x, int y)
Returns whether or not the given point is on screen (the entire width and height of the game client).- Parameters:
x
- the x-coordinatey
- the y-coordinate- Returns:
true
if the point is on screen, otherwisefalse
-
isClickable
boolean isClickable(int x, int y)
Returns whether or not the given point is clickable on the viewport of the game (seeIGameAPI.getViewportWidth()
andIGameAPI.getViewportHeight()
). Primarily used to check if objects are clickable and are not blocked by the UI (minimap and chat).- Parameters:
x
- the x-coordinatey
- the y-coordinate- Returns:
true
if the point is clickable, otherwisefalse
-
isClickable
boolean isClickable(java.awt.Point point)
Returns whether or not the given point is clickable on the viewport of the game (seeIGameAPI.getViewportWidth()
andIGameAPI.getViewportWidth()
). Primarily used to check if objects are clickable and are not blocked by the UI (minimap and chat).- Parameters:
point
- the point- Returns:
true
if the point is clickable, otherwisefalse
-
isOnMap
boolean isOnMap(Locatable locatable)
-
tileToScreen
java.awt.Point tileToScreen(Tile tile, int height)
-
tileToScreen
java.awt.Point tileToScreen(Tile tile, double dX, double dY, int height)
-
distanceTo
double distanceTo(int x, int y)
-
distanceTo
double distanceTo(int x, int y, int plane)
-
distanceTo
double distanceTo(Locatable locatable)
-
distanceBetween
double distanceBetween(java.awt.Point point1, java.awt.Point point2)
-
distanceBetween
double distanceBetween(int x, int y, int x1, int y1)
-
worldToScreen
java.awt.Point worldToScreen(int x, int y, int plane, int zOffset)
-
worldToScreen
java.awt.Point worldToScreen(int x, int y, int z)
-
modelToScreen
void modelToScreen(int end, int x3dCenter, int y3dCenter, int z3dCenter, int rotate, int[] x3d, int[] y3d, int[] z3d, int[] x2d, int[] y2d)
-
worldToMap
java.awt.Point worldToMap(double x, double y)
-
tileToMap
java.awt.Point tileToMap(Locatable locatable)
-
getTileHeight
int getTileHeight(int x, int z, int plane)
-
getTileBits
int getTileBits()
-
getTileMask
int getTileMask()
-
getTileSize
int getTileSize()
-
getSceneSize
int getSceneSize()
-
-