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 boolean
canInteract()
Evaluates whether an interaction for this mouse destination is allowed to be performed.boolean
containsMouse()
Determines if the destination shape contains the mouse.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
isVisible()
Determines whether this destination is visible.int
type()
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:
getDestinationShape
in classAbstractMouseDestination<java.awt.Point>
- Returns:
- The destination shape.
-
isVisible
public boolean isVisible()
Determines whether this destination is visible.- Specified by:
isVisible
in classAbstractMouseDestination<java.awt.Point>
- Returns:
- Whether this destination is visible.
-
type
public int type()
Mouse destination type id.- Overrides:
type
in classAbstractMouseDestination<java.awt.Point>
- Returns:
- the mouse destination type id.
-
containsMouse
public boolean containsMouse()
Determines if the destination shape contains the mouse.- Overrides:
containsMouse
in 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:
getSuitablePoint
in classAbstractMouseDestination<java.awt.Point>
- Returns:
- point within the bounding box of this mouse destination .
-
canInteract
public boolean canInteract()
Description copied from class:AbstractMouseDestination
Evaluates whether an interaction for this mouse destination is allowed to be performed.- Overrides:
canInteract
in classAbstractMouseDestination<java.awt.Point>
- Returns:
- True if an interaction is allowed to be performed.
-
-