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