public interface ICalculationsAPI
Modifier and Type | Field and Description |
---|---|
static int[] |
COSINE |
static double |
MAX_WALKABLE_DIST |
static int |
MAX_Z
The max allowed plane by the game
|
static int |
MINIMAP_TILE_SIZE |
static int[] |
SINE |
static int |
TILE_FLAG_BRIDGE |
Modifier and Type | Method and 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(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 (see
IGameAPI.getViewportWidth() and IGameAPI.getViewportHeight() ). |
boolean |
isClickable(java.awt.Point point)
Returns whether or not the given point is clickable on the viewport of the game (see
IGameAPI.getViewportWidth() and IGameAPI.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) |
static final int[] SINE
static final int[] COSINE
static final double MAX_WALKABLE_DIST
static final int MINIMAP_TILE_SIZE
static final int MAX_Z
static final int TILE_FLAG_BRIDGE
boolean isOnScreen(java.awt.Point point)
point
- the pointtrue
if the point is on screen, otherwise false
boolean isOnScreen(int x, int y)
x
- the x-coordinatey
- the y-coordinatetrue
if the point is on screen, otherwise false
boolean isClickable(int x, int y)
IGameAPI.getViewportWidth()
and IGameAPI.getViewportHeight()
).
Primarily used to check if objects are clickable and are not blocked by the UI (minimap and chat).x
- the x-coordinatey
- the y-coordinatetrue
if the point is clickable, otherwise false
boolean isClickable(java.awt.Point point)
IGameAPI.getViewportWidth()
and IGameAPI.getViewportWidth()
).
Primarily used to check if objects are clickable and are not blocked by the UI (minimap and chat).point
- the pointtrue
if the point is clickable, otherwise false
boolean isOnMap(Locatable locatable)
java.awt.Point tileToScreen(Tile tile, int height)
java.awt.Point tileToScreen(Tile tile, double dX, double dY, int height)
double distanceTo(Locatable locatable)
double distanceBetween(java.awt.Point point1, java.awt.Point point2)
double distanceBetween(int x, int y, int x1, int y1)
java.awt.Point worldToScreen(int x, int y, int plane, int zOffset)
java.awt.Point worldToScreen(int x, int y, int z)
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 worldToMap(double x, double y)
java.awt.Point tileToMap(Locatable locatable)
int getTileHeight(int x, int z, int plane)
int getTileBits()
int getTileMask()
int getTileSize()
int getSceneSize()