Class ActionConfigRegionProvider
java.lang.Object
io.github.jspinak.brobot.action.internal.region.ActionConfigRegionProvider
Bridge between legacy ActionConfig and modern region resolution. Provides methods to extract and
convert regions from ActionConfig configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToSearchRegions(ActionConfig actionConfig) Convert ActionConfig regions to StateRegion search regionsgetPatternSearchRegions(ActionConfig actionConfig) Get regions specifically for pattern matching from ActionConfiggetRegionsFromActionConfig(ActionConfig actionConfig) Get regions from ActionConfig for Find operationsgetStateImageSearchRegions(ActionConfig actionConfig) Get regions specifically for StateImage searches from ActionConfigbooleanhasSearchRegions(ActionConfig actionConfig) Check if ActionConfig has any search regions definedmergeWithExistingRegions(ActionConfig actionConfig, List<Region> existingRegions) Merge regions from ActionConfig with existing regions
-
Constructor Details
-
ActionConfigRegionProvider
public ActionConfigRegionProvider()
-
-
Method Details
-
getRegionsFromActionConfig
Get regions from ActionConfig for Find operations -
convertToSearchRegions
Convert ActionConfig regions to StateRegion search regions -
getPatternSearchRegions
Get regions specifically for pattern matching from ActionConfig -
getStateImageSearchRegions
Get regions specifically for StateImage searches from ActionConfig -
hasSearchRegions
Check if ActionConfig has any search regions defined -
mergeWithExistingRegions
public List<Region> mergeWithExistingRegions(ActionConfig actionConfig, List<Region> existingRegions) Merge regions from ActionConfig with existing regions
-