public class AreaDestination extends MouseDestination
Area
instance.Constructor and Description |
---|
AreaDestination(Bot bot,
java.awt.geom.Area area)
Creates a mouse destination specified by a
Area instance. |
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.
|
getBot, getShape, isHover, setHover
public AreaDestination(Bot bot, java.awt.geom.Area area)
Area
instance.bot
- The bot instance for this mouse destination.area
- The area that specifies the destination.public java.awt.geom.Area getArea()
MouseDestination
Area
object.getArea
in class MouseDestination
Area
.public boolean evaluate()
MouseDestination
evaluate
in class MouseDestination
public java.awt.Rectangle getBoundingBox()
MouseDestination
getBoundingBox
in class MouseDestination
public boolean isVisible()
MouseDestination
isVisible
in class MouseDestination