public class PointDestination extends MouseDestination
| Constructor and Description |
|---|
PointDestination(Bot bot,
int x,
int y)
Creates an instance of this mouse destination for a point on the game screen.
|
PointDestination(Bot bot,
java.awt.Point point)
Creates an instance of this mouse destination for a point on the game screen.
|
| 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.
|
java.awt.Point |
getPoint() |
boolean |
isVisible()
Determines whether this destination is visible.
|
getBot, getShape, isHover, setHoverpublic PointDestination(Bot bot, java.awt.Point point)
bot - The bot instance.public PointDestination(Bot bot, int x, int y)
bot - The bot instance.x - The x pointy - The y pointpublic java.awt.Point getPoint()
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