Class StringAttributeGameObjectMatcher

    • Constructor Summary

      Constructors 
      Constructor Description
      StringAttributeGameObjectMatcher​(@NotNull java.lang.String name, @NotNull Operation operation, @NotNull java.lang.String value, boolean useDefArch)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int compareValue​(@NotNull GameObject<?,​?,​?> gameObject)
      Compares the attribute value of a given game object with the expected value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringAttributeGameObjectMatcher

        public StringAttributeGameObjectMatcher​(@NotNull
                                                @NotNull java.lang.String name,
                                                @NotNull
                                                @NotNull Operation operation,
                                                @NotNull
                                                @NotNull java.lang.String value,
                                                boolean useDefArch)
        Creates a new instance.
        Parameters:
        name - the attribute name to match
        operation - the Operator to use
        value - the attribute value to compare with
        useDefArch - whether to query the archetype as well
    • Method Detail

      • compareValue

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