20 package net.sf.gridarta.model.match;
23 import org.jetbrains.annotations.NotNull;
55 return name.matches(gameObject.getArchetype().getArchetypeName());
71 public void setName(@NotNull
final String name) {
Interface for classes that match GameObjects.
String name
The archetype name to match.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.
static final long serialVersionUID
The serial version UID.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
MutableNameGameObjectMatcher(@NotNull final String name)
Creates a new instance.
GameObjects are the objects based on Archetypes found on maps.
String getName()
Returns the archetype name matched by this matcher.
void setName(@NotNull final String name)
Sets the archetype name to match.
An GameObjectMatcher that simply matches an archetype name.