public class MutableOrGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher that delegates to other GameObjectMatchers. If empty, isMatching(GameObject) returns true.| Constructor and Description |
|---|
MutableOrGameObjectMatcher(boolean defaultState)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArchObjectMatcher(@NotNull GameObjectMatcher gameObjectMatcher)
Adds a
GameObjectMatcher. |
boolean |
containsArchObjectMatcher(@NotNull GameObjectMatcher gameObjectMatcher)
Checks whether a certain
GameObjectMatcher is contained in this
matcher. |
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject. |
void |
removeAll()
Removes all
GameObjectMatchers. |
void |
removeArchObjectMatcher(@NotNull GameObjectMatcher gameObjectMatcher)
Removes a
GameObjectMatcher. |
public MutableOrGameObjectMatcher(boolean defaultState)
defaultState - the default matching state when gameObjectMatchers is emptypublic boolean isMatching(@NotNull
@NotNull GameObject<?,?,?> gameObject)
GameObjectMatcherGameObject.isMatching in interface GameObjectMatchergameObject - the GameObject to matchtrue if this matcher matches the given game object,
otherwise falsepublic void addArchObjectMatcher(@NotNull
@NotNull GameObjectMatcher gameObjectMatcher)
GameObjectMatcher. The supplied GameObjectMatcher
is only really added if it isn't already included, e.g. containsArchObjectMatcher(GameObjectMatcher) returns false.gameObjectMatcher - the matcher to addpublic void removeArchObjectMatcher(@NotNull
@NotNull GameObjectMatcher gameObjectMatcher)
GameObjectMatcher.gameObjectMatcher - the matcher to removepublic boolean containsArchObjectMatcher(@NotNull
@NotNull GameObjectMatcher gameObjectMatcher)
GameObjectMatcher is contained in this
matcher.gameObjectMatcher - the matcher to checktrue if the matcher is contained in this, otherwise
falsepublic void removeAll()
GameObjectMatchers.