Class TileDestination
- java.lang.Object
-
- org.dreambot.api.input.mouse.destination.AbstractMouseDestination<Tile>
-
- org.dreambot.api.input.mouse.destination.impl.TileDestination
-
public class TileDestination extends AbstractMouseDestination<Tile>
Created by Pandemic
-
-
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 TileDestination(Tile tile)Creates an instance of a Tile destination on the game screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.awt.Point point)Determines if point is contained inside of destination shape.java.awt.geom.AreagetArea()Gets the area of the abstract destination shape.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.booleanhandleCamera(boolean withZoom, Condition interrupt)Handles camera portion of event interaction.booleanisVisible()Determines whether this destination is visible.inttype()Mouse destination type id.booleanverifyPostInteract()Verification/callback after your interaction has been completedEntityDestinationwould implement this to check for crosshair color, for example.-
Methods inherited from class org.dreambot.api.input.mouse.destination.AbstractMouseDestination
canInteract, canInteract, contains, containsMouse, getBoundingBox, getCenterPoint, getContainmentBounds, getInterrupt, getTarget, handleCamera, handleWalk, setContainmentBounds, setInterrupt, toString, valid
-
-
-
-
Constructor Detail
-
TileDestination
public TileDestination(Tile tile)
Creates an instance of a Tile destination on the game screen- Parameters:
tile- Tile that is the destination
-
-
Method Detail
-
getArea
public java.awt.geom.Area getArea()
Gets the area of the abstract destination shape.- Overrides:
getAreain classAbstractMouseDestination<Tile>- Returns:
- The
Areagenerated from the abstract destination shape.
-
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.
-
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 .
-
type
public int type()
Mouse destination type id.- Overrides:
typein classAbstractMouseDestination<Tile>- Returns:
- the mouse destination type id.
-
handleCamera
public boolean handleCamera(boolean withZoom, Condition interrupt)Description copied from class:AbstractMouseDestinationHandles camera portion of event interaction. This is used internally by interact().- Overrides:
handleCamerain classAbstractMouseDestination<Tile>- Returns:
- True if the event succeeded.
-
verifyPostInteract
public boolean verifyPostInteract()
Description copied from class:AbstractMouseDestinationVerification/callback after your interaction has been completedEntityDestinationwould implement this to check for crosshair color, for example.- Overrides:
verifyPostInteractin classAbstractMouseDestination<Tile>- Returns:
- default of True if not implemented, else return of implementation
-
contains
public boolean contains(java.awt.Point point)
Description copied from class:AbstractMouseDestinationDetermines if point is contained inside of destination shape.- Overrides:
containsin classAbstractMouseDestination<Tile>- Parameters:
point- the point which to check.- Returns:
- true if point is contained inside of shape, otherwise false.
-
-