public abstract class AttributeGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher
that matches a attribute value.Modifier | Constructor and Description |
---|---|
protected |
AttributeGameObjectMatcher(@NotNull Operation operation)
Creates an
AttributeGameObjectMatcher . |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
compareValue(@NotNull GameObject<?,?,?> gameObject)
Compares the attribute value of a given game object with the expected
value.
|
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject . |
protected AttributeGameObjectMatcher(@NotNull @NotNull Operation operation)
AttributeGameObjectMatcher
.operation
- the Operator
to usepublic boolean isMatching(@NotNull @NotNull GameObject<?,?,?> gameObject)
GameObjectMatcher
GameObject
.isMatching
in interface GameObjectMatcher
gameObject
- the GameObject
to matchtrue
if this matcher matches the given game object,
otherwise false
protected abstract int compareValue(@NotNull @NotNull GameObject<?,?,?> gameObject)
gameObject
- the game object