Class AttributeGameObjectMatcher

    • Constructor Detail

      • AttributeGameObjectMatcher

        protected AttributeGameObjectMatcher​(@NotNull
                                             @NotNull Operation operation)
        Creates an AttributeGameObjectMatcher.
        Parameters:
        operation - the Operator to use
    • 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
      • compareValue

        protected abstract int compareValue​(@NotNull
                                            @NotNull GameObject<?,​?,​?> gameObject)
        Compares the attribute value of a given game object with the expected value.
        Parameters:
        gameObject - the game object
        Returns:
        <0, 0, or >0 depending on the comparison result