Class AbstractShopSquareChecker<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • AbstractShopSquareChecker

        protected AbstractShopSquareChecker​(@NotNull
                                            @NotNull ValidatorPreferences validatorPreferences)
        Creates a new instance.
        Parameters:
        validatorPreferences - the validator preferences to use
    • Method Detail

      • findMatchingSquares

        protected boolean @NotNull [] @NotNull [] findMatchingSquares​(@NotNull
                                                                      @NotNull MapModel<G,​A,​R> mapModel,
                                                                      @NotNull
                                                                      @NotNull GameObjectMatcher matcher)
        Returns a boolean array of the map size that marks squares that contain game objects matching a given GameObjectMatcher.
        Parameters:
        mapModel - the map to check
        matcher - the matcher to use
        Returns:
        the array