Class MiniMapTileDestination

    • Constructor Detail

      • MiniMapTileDestination

        public MiniMapTileDestination​(Tile tile)
        Creates an instance of a minimap destination from a given tile
        Parameters:
        tile - Global Tile that is the destination on the minimap
    • Method Detail

      • getArea

        public java.awt.geom.Area getArea()
        Gets the area associated with the MiniMapTileDestination represented as a Ellipse2D with a diameter of 2.
        Overrides:
        getArea in class AbstractMouseDestination<Tile>
        Returns:
        a Area represented as a Ellipse2D.
      • getBoundingBox

        public java.awt.Rectangle getBoundingBox()
        Get the bounding box for the MiniMapTileDestination represented as a Rectangle with a width of 2 and a height of 2.
        Overrides:
        getBoundingBox in class AbstractMouseDestination<Tile>
        Returns:
        bounding box for destination
      • getSuitablePoint

        public java.awt.Point getSuitablePoint()
        Description copied from class: AbstractMouseDestination
        Gets a gaussian distributed offset point within the bounding box of this mouse destination.
        Overrides:
        getSuitablePoint in class AbstractMouseDestination<Tile>
        Returns:
        point within the bounding box of this mouse destination .
      • isVisible

        public boolean isVisible()
        Determines whether this destination is visible.
        Specified by:
        isVisible in class AbstractMouseDestination<Tile>
        Returns:
        Whether this destination is visible.