Class MiniMapTileDestination
- java.lang.Object
-
- org.dreambot.api.input.mouse.destination.AbstractMouseDestination<Tile>
-
- org.dreambot.api.input.mouse.destination.impl.MiniMapTileDestination
-
public class MiniMapTileDestination extends AbstractMouseDestination<Tile>
-
-
Field Summary
-
Fields inherited from class org.dreambot.api.input.mouse.destination.AbstractMouseDestination
AREA_DESTINATION, ENTITY_DESTINATION, MINIMAP_DESTINATION, NULL, POINT_DESTINATION, POLYGON_DESTINATION, RECTANGLE_DESTINATION, SHAPE_DESTINATION, TILE_DESTINATION
-
-
Constructor Summary
Constructors Constructor Description MiniMapTileDestination(Tile tile)
Creates an instance of a minimap destination from a given tile
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Area
getArea()
Gets the area associated with the MiniMapTileDestination represented as an Ellipse2D with a diameter ofWalking.getMinimapTargetSize()
.java.awt.Rectangle
getBoundingBox()
Get the bounding box for the MiniMapTileDestination represented as a Rectangle with a width and height ofWalking.getMinimapTargetSize()
.java.awt.Shape
getDestinationShape()
Gets the abstract destination shape.java.awt.Point
getSuitablePoint()
Gets a gaussian distributed offset point within the bounding box of this mouse destination.boolean
isVisible()
Determines whether this destination is visible.int
type()
Mouse destination type id.-
Methods inherited from class org.dreambot.api.input.mouse.destination.AbstractMouseDestination
canInteract, canInteract, contains, contains, containsMouse, getCenterPoint, getContainmentBounds, getInterrupt, getTarget, handleCamera, handleCamera, handleWalk, setContainmentBounds, setInterrupt, toString, valid, verifyPostInteract
-
-
-
-
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 an Ellipse2D with a diameter ofWalking.getMinimapTargetSize()
.- Overrides:
getArea
in classAbstractMouseDestination<Tile>
- Returns:
- an Area represented as an Ellipse2D.
-
getBoundingBox
public java.awt.Rectangle getBoundingBox()
Get the bounding box for the MiniMapTileDestination represented as a Rectangle with a width and height ofWalking.getMinimapTargetSize()
.- Overrides:
getBoundingBox
in classAbstractMouseDestination<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 classAbstractMouseDestination<Tile>
- Returns:
- point within the bounding box of this mouse destination .
-
getDestinationShape
public java.awt.Shape getDestinationShape()
Gets the abstract destination shape.- Specified by:
getDestinationShape
in classAbstractMouseDestination<Tile>
- Returns:
- The destination shape.
-
isVisible
public boolean isVisible()
Determines whether this destination is visible.- Specified by:
isVisible
in classAbstractMouseDestination<Tile>
- Returns:
- Whether this destination is visible.
-
type
public int type()
Mouse destination type id.- Overrides:
type
in classAbstractMouseDestination<Tile>
- Returns:
- the mouse destination type id.
-
-