public class MutableNameGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher that simply matches an archetype name. This is
probably the most basic and most simple implementation of GameObjectMatcher.| Constructor and Description |
|---|
MutableNameGameObjectMatcher(java.lang.String name)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the archetype name matched by this matcher.
|
boolean |
isMatching(GameObject<?,?,?> gameObject)
Matches an
GameObject. |
void |
setName(java.lang.String name)
Sets the archetype name to match.
|
public MutableNameGameObjectMatcher(@NotNull
java.lang.String name)
name - the archetype name to match againstpublic boolean isMatching(@NotNull
GameObject<?,?,?> gameObject)
GameObject.isMatching in interface GameObjectMatchergameObject - the GameObject to matchtrue if this matcher matches the given game object,
otherwise false@NotNull public java.lang.String getName()
public void setName(@NotNull
java.lang.String name)
name - the archetype name to match against