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

    • Constructor Detail

      • SlayingChecker

        public SlayingChecker​(@NotNull
                              @NotNull ValidatorPreferences validatorPreferences,
                              @NotNull
                              @NotNull java.util.regex.Pattern defaultRegex)
        Creates a new instance.
        Parameters:
        validatorPreferences - the validator preferences to use
        defaultRegex - the regular expression for any "slaying" field not matching any specific game object
    • Method Detail

      • addMatcher

        public void addMatcher​(@NotNull
                               @NotNull GameObjectMatcher gameObjectMatcher,
                               @NotNull
                               @NotNull java.util.regex.Pattern regex)
        Adds a matcher to check.
        Parameters:
        gameObjectMatcher - selects the game objects to check
        regex - the allowed values of the "slaying" field