20 package net.sf.gridarta.model.match;
23 import org.jetbrains.annotations.NotNull;
24 import org.jetbrains.annotations.Nullable;
81 private final String
id;
112 if (envGameObjectMatcher != null) {
116 return gameObjectMatcher.
isMatching(gameObject);
NamedGameObjectMatcher(final int editType, @NotNull final String id, @NotNull final String name, final boolean systemMatcher, @Nullable final GameObjectMatcher envGameObjectMatcher, @NotNull final GameObjectMatcher gameObjectMatcher)
Creates a new instance.
final int editType
The edit type of this matcher.
Interface for classes that match GameObjects.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.
static final long serialVersionUID
The serial version UID.
Decorates an arbitrary GameObjectMatcher with a localized name that is suitable for the user interfac...
String getID()
Gets the ID of this.
int getEditType()
Returns the edit type associated with this matcher.
final GameObjectMatcher gameObjectMatcher
The GameObjectMatcher to wrap.
String getName()
Gets the name of this.
Base package of all Gridarta classes.
final String name
The localized name.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
boolean isMatchingInventory(@NotNull final GameObject<?, ?, ?> gameObject)
Returns whether this matcher matches any inventory game object of a given game object.
boolean isSystemMatcher()
Returns whether this matcher is a system matcher.
final String id
The id of this GameObjectMatcher.
final boolean systemMatcher
Whether this matcher is a system matcher.
boolean isMatching(@NotNull GameObject<?, ?, ?> gameObject)
Matches an GameObject.
final GameObjectMatcher envGameObjectMatcher
The environment GameObjectMatcher.