Class PointDestination
- java.lang.Object
-
- org.dreambot.api.input.mouse.destination.AbstractMouseDestination<java.awt.Point>
-
- org.dreambot.api.input.mouse.destination.impl.PointDestination
-
public class PointDestination extends AbstractMouseDestination<java.awt.Point>
Created with IntelliJ IDEA.- Since:
- : 2/9/2015 Time : 6:14 PM
-
-
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 PointDestination(java.awt.Point destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanInteract()Evaluates whether an interaction for this mouse destination is allowed to be performed.booleancontainsMouse()Determines if the destination shape contains the mouse.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, contains, contains, getArea, getBoundingBox, getCenterPoint, getContainmentBounds, getInterrupt, getTarget, handleCamera, handleCamera, handleWalk, setContainmentBounds, setInterrupt, toString, valid, verifyPostInteract
-
-
-
-
Method Detail
-
getDestinationShape
public java.awt.Shape getDestinationShape()
Gets the abstract destination shape.- Specified by:
getDestinationShapein classAbstractMouseDestination<java.awt.Point>- Returns:
- The destination shape.
-
isVisible
public boolean isVisible()
Determines whether this destination is visible.- Specified by:
isVisiblein classAbstractMouseDestination<java.awt.Point>- Returns:
- Whether this destination is visible.
-
type
public int type()
Mouse destination type id.- Overrides:
typein classAbstractMouseDestination<java.awt.Point>- Returns:
- the mouse destination type id.
-
containsMouse
public boolean containsMouse()
Determines if the destination shape contains the mouse.- Overrides:
containsMousein classAbstractMouseDestination<java.awt.Point>- Returns:
- true if destination shape contains mouse, otherwise false.
-
getSuitablePoint
public java.awt.Point getSuitablePoint()
Gets a gaussian distributed offset point within the bounding box of this mouse destination.- Overrides:
getSuitablePointin classAbstractMouseDestination<java.awt.Point>- Returns:
- point within the bounding box of this mouse destination .
-
canInteract
public boolean canInteract()
Description copied from class:AbstractMouseDestinationEvaluates whether an interaction for this mouse destination is allowed to be performed.- Overrides:
canInteractin classAbstractMouseDestination<java.awt.Point>- Returns:
- True if an interaction is allowed to be performed.
-
-