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

    • Constructor Detail

      • ShopSquareChecker

        public ShopSquareChecker​(@NotNull
                                 @NotNull ValidatorPreferences validatorPreferences,
                                 @NotNull
                                 @NotNull GameObjectMatcher shopMatcher,
                                 @NotNull
                                 @NotNull GameObjectMatcher noSpellsMatcher,
                                 @Nullable
                                 @Nullable GameObjectMatcher blockedMatcher)
        Creates a new instance.
        Parameters:
        validatorPreferences - the validator preferences to use
        shopMatcher - the game object matcher for finding shop squares
        noSpellsMatcher - the game object matcher for finding no-spell squares
        blockedMatcher - the game object matcher for finding blocked squares
    • Method Detail

      • validateMap

        public void validateMap​(@NotNull
                                @NotNull MapModel<G,​A,​R> mapModel,
                                @NotNull
                                @NotNull ErrorCollector<G,​A,​R> errorCollector)
        Description copied from interface: MapValidator
        Validate a map.
        Parameters:
        mapModel - Map to validate
        errorCollector - Error collector to report errors to