20 package net.sf.gridarta.model.select;
22 import java.util.regex.Pattern;
26 import net.
sf.japi.util.filter.file.GlobFileFilter;
27 import org.jetbrains.annotations.NotNull;
46 this.objectName = Pattern.compile(GlobFileFilter.createPatternForGlob(objectName), Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
50 public boolean matches(@NotNull
final G gameObject) {
51 return objectName.matcher(gameObject.getBestName()).find();
boolean matches(@NotNull final G gameObject)
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
A MatchCriteria that matches by object name.
final Pattern objectName
The object name to match.
ObjectNameMatchCriteria(@NotNull final String objectName)
Creates a new instance.
Criteria for game object matchers.
Interface for MapArchObjects.