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 Details

    • MatchFusionDeciderAbsoluteSize

      public MatchFusionDeciderAbsoluteSize()
  • Method Details

    • isSameMatchGroup

      public boolean isSameMatchGroup(Match match1, Match match2, int minXDist, int minYDist)
      Evaluates the new match with respect to the current combined match region.
      Specified by:
      isSameMatchGroup in interface MatchFusionDecider
      Parameters:
      match1 - the new match
      minXDist - the minimum x-distance to combine the match
      minYDist - the minimum y-distance to combine the match
      Returns:
      true if the new match should be part of the current combined match region.