Class ShapeDestination<T extends java.awt.Shape>
- java.lang.Object
-
- org.dreambot.api.input.mouse.destination.AbstractMouseDestination<T>
-
- org.dreambot.api.input.mouse.destination.impl.shape.ShapeDestination<T>
-
- Type Parameters:
T
- the typeShape
you wish to use.
- Direct Known Subclasses:
AreaDestination
,PolygonDestination
,RectangleDestination
public class ShapeDestination<T extends java.awt.Shape> extends AbstractMouseDestination<T>
A generic Shape destination, which can be used with anyShape
.
-
-
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 ShapeDestination(T shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getDestinationShape()
Gets the abstract destination shape.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, canInteract, contains, contains, containsMouse, getArea, getBoundingBox, getCenterPoint, getContainmentBounds, getInterrupt, getSuitablePoint, getTarget, handleCamera, handleCamera, handleWalk, setContainmentBounds, setInterrupt, toString, valid, verifyPostInteract
-
-
-
-
Constructor Detail
-
ShapeDestination
public ShapeDestination(T shape)
-
-
Method Detail
-
getDestinationShape
public T getDestinationShape()
Gets the abstract destination shape.- Specified by:
getDestinationShape
in classAbstractMouseDestination<T extends java.awt.Shape>
- Returns:
- The destination shape.
-
isVisible
public boolean isVisible()
Determines whether this destination is visible.- Specified by:
isVisible
in classAbstractMouseDestination<T extends java.awt.Shape>
- Returns:
- Whether this destination is visible.
-
type
public int type()
Mouse destination type id.- Overrides:
type
in classAbstractMouseDestination<T extends java.awt.Shape>
- Returns:
- the mouse destination type id.
-
-