Class IntAttributeGameObjectMatcher

    • Constructor Summary

      Constructors 
      Constructor Description
      IntAttributeGameObjectMatcher​(@NotNull java.lang.String name, @NotNull Operation operation, @NotNull java.lang.String value, boolean useDefArch)
      Creates an AttributeGameObjectMatcher.
    • 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

      • IntAttributeGameObjectMatcher

        public IntAttributeGameObjectMatcher​(@NotNull
                                             @NotNull java.lang.String name,
                                             @NotNull
                                             @NotNull Operation operation,
                                             @NotNull
                                             @NotNull java.lang.String value,
                                             boolean useDefArch)
                                      throws ParsingException
        Creates an AttributeGameObjectMatcher.
        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
        Throws:
        ParsingException - if the value is not an integer
    • 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