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.AbstractMouseDestinationAREA_DESTINATION, ENTITY_DESTINATION, MINIMAP_DESTINATION, NULL, POINT_DESTINATION, POLYGON_DESTINATION, RECTANGLE_DESTINATION, SHAPE_DESTINATION, TILE_DESTINATION
 
- 
 - 
Constructor SummaryConstructors Constructor Description TileDestination(Tile tile)Creates an instance of a Tile destination on the game screen
 - 
Method SummaryAll 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.AbstractMouseDestinationcanInteract, canInteract, contains, containsMouse, getBoundingBox, getCenterPoint, getContainmentBounds, getInterrupt, getTarget, handleCamera, handleWalk, setContainmentBounds, setInterrupt, toString, valid
 
- 
 
- 
- 
- 
Constructor Detail- 
TileDestinationpublic TileDestination(Tile tile) Creates an instance of a Tile destination on the game screen- Parameters:
- tile- Tile that is the destination
 
 
- 
 - 
Method Detail- 
getAreapublic java.awt.geom.Area getArea() Gets the area of the abstract destination shape.- Overrides:
- getAreain class- AbstractMouseDestination<Tile>
- Returns:
- The Areagenerated from the abstract destination shape.
 
 - 
getDestinationShapepublic java.awt.Shape getDestinationShape() Gets the abstract destination shape.- Specified by:
- getDestinationShapein class- AbstractMouseDestination<Tile>
- Returns:
- The destination shape.
 
 - 
isVisiblepublic boolean isVisible() Determines whether this destination is visible.- Specified by:
- isVisiblein class- AbstractMouseDestination<Tile>
- Returns:
- Whether this destination is visible.
 
 - 
getSuitablePointpublic java.awt.Point getSuitablePoint() Description copied from class:AbstractMouseDestinationGets a gaussian distributed offset point within the bounding box of this mouse destination.- Overrides:
- getSuitablePointin class- AbstractMouseDestination<Tile>
- Returns:
- point within the bounding box of this mouse destination .
 
 - 
typepublic int type() Mouse destination type id.- Overrides:
- typein class- AbstractMouseDestination<Tile>
- Returns:
- the mouse destination type id.
 
 - 
handleCamerapublic boolean handleCamera(boolean withZoom, Condition interrupt)Description copied from class:AbstractMouseDestinationHandles camera portion of event interaction. This is used internally by interact().- Overrides:
- handleCamerain class- AbstractMouseDestination<Tile>
- Returns:
- True if the event succeeded.
 
 - 
verifyPostInteractpublic 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 class- AbstractMouseDestination<Tile>
- Returns:
- default of True if not implemented, else return of implementation
 
 - 
containspublic boolean contains(java.awt.Point point) Description copied from class:AbstractMouseDestinationDetermines if point is contained inside of destination shape.- Overrides:
- containsin class- AbstractMouseDestination<Tile>
- Parameters:
- point- the point which to check.
- Returns:
- true if point is contained inside of shape, otherwise false.
 
 
- 
 
-