public class IntAttributeGameObjectMatcher extends AttributeGameObjectMatcher
AttributeGameObjectMatcher
that compares attributes values using
"int" type.Constructor and Description |
---|
IntAttributeGameObjectMatcher(@NotNull java.lang.String name,
@NotNull Operation operation,
@NotNull java.lang.String value,
boolean useDefArch)
Creates an
AttributeGameObjectMatcher . |
Modifier and Type | Method and Description |
---|---|
protected int |
compareValue(@NotNull GameObject<?,?,?> gameObject)
Compares the attribute value of a given game object with the expected
value.
|
isMatching
public IntAttributeGameObjectMatcher(@NotNull @NotNull java.lang.String name, @NotNull @NotNull Operation operation, @NotNull @NotNull java.lang.String value, boolean useDefArch) throws ParsingException
AttributeGameObjectMatcher
.name
- the attribute name to matchoperation
- the Operator
to usevalue
- the attribute value to compare withuseDefArch
- whether to query the archetype as wellParsingException
- if the value is not an integerprotected int compareValue(@NotNull @NotNull GameObject<?,?,?> gameObject)
AttributeGameObjectMatcher
compareValue
in class AttributeGameObjectMatcher
gameObject
- the game object