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