public class RectangleDestination extends MouseDestination
| Constructor and Description |
|---|
RectangleDestination(Bot bot,
int x,
int y,
int width,
int height)
Creates an instance of this mouse destination for a rectangle on the gamescreen.
|
RectangleDestination(Bot bot,
java.awt.Rectangle rect)
Creates an instance of this mouse destination for a rectangle on the gamescreen.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate()
Evaluates whether an interaction for this mouse destination is allowed to
be performed.
|
java.awt.geom.Area |
getArea()
Gets the destination area specified by a
Area
object. |
java.awt.Rectangle |
getBoundingBox()
Gets the bounding box rectangle of this mouse destination.
|
boolean |
isVisible()
Determines whether this destination is visible.
|
boolean |
isVisible(java.awt.Rectangle boundingBox)
Deprecated.
|
getBot, getShape, isHover, setHoverpublic RectangleDestination(Bot bot, java.awt.Rectangle rect)
bot - The bot instance.rect - The rectangle that is the destination.public RectangleDestination(Bot bot, int x, int y, int width, int height)
bot - The bot instance.x - The x coordinate of the rectangle.y - The y coordinate of the rectangle.width - The width of the rectangle.height - The height of the rectangle.public java.awt.geom.Area getArea()
MouseDestinationArea
object.getArea in class MouseDestinationArea.public boolean evaluate()
MouseDestinationevaluate in class MouseDestinationpublic java.awt.Rectangle getBoundingBox()
MouseDestinationgetBoundingBox in class MouseDestinationpublic boolean isVisible()
MouseDestinationisVisible in class MouseDestination@Deprecated public boolean isVisible(java.awt.Rectangle boundingBox)