Class MatchFusionDeciderAbsoluteSize
java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.matchManagement.MatchFusionDeciderAbsoluteSize
- All Implemented Interfaces:
MatchFusionDecider
@Primary
@Component
public class MatchFusionDeciderAbsoluteSize
extends Object
implements MatchFusionDecider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSameMatchGroup
(Match match1, Match match2, int minXDist, int minYDist) Evaluates the new match with respect to the current combined match region.
-
Constructor Details
-
MatchFusionDeciderAbsoluteSize
public MatchFusionDeciderAbsoluteSize()
-
-
Method Details
-
isSameMatchGroup
Evaluates the new match with respect to the current combined match region.- Specified by:
isSameMatchGroup
in interfaceMatchFusionDecider
- Parameters:
match1
- the new matchminXDist
- the minimum x-distance to combine the matchminYDist
- the minimum y-distance to combine the match- Returns:
- true if the new match should be part of the current combined match region.
-