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.AreagetArea()Gets the area associated with the MiniMapTileDestination represented as an Ellipse2D with a diameter ofWalking.getMinimapTargetSize().java.awt.RectanglegetBoundingBox()Get the bounding box for the MiniMapTileDestination represented as a Rectangle with a width and height ofWalking.getMinimapTargetSize().java.awt.ShapegetDestinationShape()Gets the abstract destination shape.java.awt.PointgetSuitablePoint()Gets a gaussian distributed offset point within the bounding box of this mouse destination.booleanisVisible()Determines whether this destination is visible.inttype()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:
getAreain 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:
getBoundingBoxin classAbstractMouseDestination<Tile>- Returns:
- bounding box for destination
-
getSuitablePoint
public java.awt.Point getSuitablePoint()
Description copied from class:AbstractMouseDestinationGets a gaussian distributed offset point within the bounding box of this mouse destination.- Overrides:
getSuitablePointin 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:
getDestinationShapein classAbstractMouseDestination<Tile>- Returns:
- The destination shape.
-
isVisible
public boolean isVisible()
Determines whether this destination is visible.- Specified by:
isVisiblein classAbstractMouseDestination<Tile>- Returns:
- Whether this destination is visible.
-
type
public int type()
Mouse destination type id.- Overrides:
typein classAbstractMouseDestination<Tile>- Returns:
- the mouse destination type id.
-
-