Interface ICalculationsAPI


  • public interface ICalculationsAPI
    • 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, otherwise false
      • 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-coordinate
        y - the y-coordinate
        Returns:
        true if the point is on screen, otherwise false
      • isClickable

        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()). Primarily used to check if objects are clickable and are not blocked by the UI (minimap and chat).
        Parameters:
        x - the x-coordinate
        y - the y-coordinate
        Returns:
        true if the point is clickable, otherwise false
      • isClickable

        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()). 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, otherwise false
      • 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​(Locatable locatable1,
                               Locatable locatable2)
      • 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()