Class MutableOrGameObjectMatcher

    • Constructor Detail

      • MutableOrGameObjectMatcher

        public MutableOrGameObjectMatcher​(boolean defaultState)
        Creates a new instance.
        Parameters:
        defaultState - the default matching state when gameObjectMatchers is empty
    • Method Detail

      • isMatching

        public boolean isMatching​(@NotNull
                                  @NotNull GameObject<?,​?,​?> gameObject)
        Description copied from interface: GameObjectMatcher
        Matches a GameObject.
        Specified by:
        isMatching in interface GameObjectMatcher
        Parameters:
        gameObject - the GameObject to match
        Returns:
        true if this matcher matches the given game object, otherwise false
      • removeArchObjectMatcher

        public void removeArchObjectMatcher​(@NotNull
                                            @NotNull GameObjectMatcher gameObjectMatcher)
        Parameters:
        gameObjectMatcher - the matcher to remove
      • containsArchObjectMatcher

        public boolean containsArchObjectMatcher​(@NotNull
                                                 @NotNull GameObjectMatcher gameObjectMatcher)
        Checks whether a certain GameObjectMatcher is contained in this matcher.
        Parameters:
        gameObjectMatcher - the matcher to check
        Returns:
        true if the matcher is contained in this, otherwise false