Interface TileObject

    • Method Detail

      • getHash

        long getHash()
      • getX

        int getX()
        Gets the x-axis coordinate of the object in local context.
        See Also:
        LocalPoint
      • getY

        int getY()
        Gets the y-axis coordinate of the object in local context.
        See Also:
        LocalPoint
      • getPlane

        int getPlane()
        Gets the plane of the tile that the object is on.
      • getCanvasLocation

        Point getCanvasLocation()
        Calculates the position of the center of this tile on the canvas
      • getCanvasLocation

        Point getCanvasLocation​(int zOffset)
        Calculates the position of the center of this tile on the canvas
        Parameters:
        zOffset - Vertical offset to apply before projection
      • getCanvasTilePoly

        Polygon getCanvasTilePoly()
        Creates a polygon outlining the tile this object is on
      • getCanvasTextLocation

        Point getCanvasTextLocation​(Graphics2D graphics,
                                    String text,
                                    int zOffset)
        Calculates the canvas point to center text above the tile this object is on.
        Parameters:
        graphics - the graphics to use for font size calculation
        zOffset - Vertical offset to apply before projection
        Returns:
        the canvas point to draw the text at
      • getMinimapLocation

        Point getMinimapLocation()
        Gets a point on the canvas of where this objects mini-map indicator should appear.
        Returns:
        mini-map location on canvas
      • getClickbox

        @Nullable
        Shape getClickbox()
        Calculate the on-screen clickable area of the object.