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 boolean
contains(java.awt.Point point)
Determines if point is contained inside of destination shape.java.awt.geom.Area
getArea()
Gets the area of the abstract destination shape.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
handleCamera(boolean withZoom, Condition interrupt)
Handles camera portion of event interaction.boolean
isVisible()
Determines whether this destination is visible.int
type()
Mouse destination type id.boolean
verifyPostInteract()
Verification/callback after your interaction has been completedEntityDestination
would 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:
getArea
in classAbstractMouseDestination<Tile>
- Returns:
- The
Area
generated from the abstract destination shape.
-
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.
-
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 .
-
type
public int type()
Mouse destination type id.- Overrides:
type
in classAbstractMouseDestination<Tile>
- Returns:
- the mouse destination type id.
-
handleCamera
public boolean handleCamera(boolean withZoom, Condition interrupt)
Description copied from class:AbstractMouseDestination
Handles camera portion of event interaction. This is used internally by interact().- Overrides:
handleCamera
in classAbstractMouseDestination<Tile>
- Returns:
- True if the event succeeded.
-
verifyPostInteract
public boolean verifyPostInteract()
Description copied from class:AbstractMouseDestination
Verification/callback after your interaction has been completedEntityDestination
would implement this to check for crosshair color, for example.- Overrides:
verifyPostInteract
in 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:AbstractMouseDestination
Determines if point is contained inside of destination shape.- Overrides:
contains
in classAbstractMouseDestination<Tile>
- Parameters:
point
- the point which to check.- Returns:
- true if point is contained inside of shape, otherwise false.
-
-