Class CrossStateAnchor
java.lang.Object
io.github.jspinak.brobot.model.element.Anchor
io.github.jspinak.brobot.model.element.CrossStateAnchor
Enhanced anchor that can reference matches from other states. This allows regions to be defined
using reference points from objects in different states, enabling more flexible and dynamic
region definitions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCrossStateAnchor
(Positions.Name anchorInNewDefinedRegion, Positions.Name positionInMatch) -
Method Summary
Modifier and TypeMethodDescriptiongetAdjustedLocation
(Location matchLocation, Region matchRegion) Creates a Location from a match, applying adjustments.void
setAdjustments
(MatchAdjustmentOptions adjustments) void
setSourceObjectName
(String sourceObjectName) void
setSourceStateName
(String sourceStateName) void
setSourceType
(StateObject.Type sourceType) Methods inherited from class io.github.jspinak.brobot.model.element.Anchor
canEqual, equals, getAnchorInNewDefinedRegion, getPositionInMatch, hashCode, setAnchorInNewDefinedRegion, setPositionInMatch, toString
-
Constructor Details
-
CrossStateAnchor
public CrossStateAnchor() -
CrossStateAnchor
-
-
Method Details
-
getAdjustedLocation
Creates a Location from a match, applying adjustments.- Parameters:
matchLocation
- The location of the matched objectmatchRegion
- The region of the matched object- Returns:
- The adjusted location for this anchor
-
getSourceStateName
-
getSourceObjectName
-
getSourceType
-
getAdjustments
-
setSourceStateName
-
setSourceObjectName
-
setSourceType
-
setAdjustments
-