20 package net.sf.gridarta.model.match;
22 import java.util.ArrayList;
23 import java.util.Collection;
25 import org.jetbrains.annotations.NotNull;
64 if (gameObjectMatchers.isEmpty()) {
68 if (gameObjectMatcher.isMatching(gameObject)) {
83 gameObjectMatchers.add(gameObjectMatcher);
92 gameObjectMatchers.remove(gameObjectMatcher);
103 return gameObjectMatchers.contains(gameObjectMatcher);
110 gameObjectMatchers.clear();
Interface for classes that match GameObjects.
static final long serialVersionUID
The serial version UID.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.
final Collection< GameObjectMatcher > gameObjectMatchers
The GameObjectMatchers to OR.
void removeAll()
Removes all GameObjectMatchers.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
boolean containsArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Checks whether a certain GameObjectMatcher is contained in this matcher.
void removeArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Removes an GameObjectMatcher.
void addArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Adds an GameObjectMatcher.
GameObjects are the objects based on Archetypes found on maps.
A GameObjectMatcher that delegates to other.
final boolean defaultState
The default matching state when gameObjectMatchers is empty.
MutableOrGameObjectMatcher(final boolean defaultState)
Creates a new instance.