20 package net.sf.gridarta.model.match;
22 import java.util.ArrayList;
23 import java.util.Collection;
25 import org.jetbrains.annotations.NotNull;
44 private final Collection<GameObjectMatcher>
matchers =
new ArrayList<>();
51 this.matchers.addAll(matchers);
57 if (gameObjectMatcher.isMatching(gameObject)) {
Interface for classes that match GameObjects.
final Collection< GameObjectMatcher > matchers
List of GameObjectMatcher to OR.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
OrGameObjectMatcher(@NotNull final Collection< GameObjectMatcher > matchers)
Creates a new instance.
static final long serialVersionUID
The serial version UID.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.
A GameObjectMatcher that Or-combines other.