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.archetypeName = Pattern.compile(GlobFileFilter.createPatternForGlob(archetypeName), Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
50 public boolean matches(@NotNull
final G gameObject) {
51 return archetypeName.matcher(gameObject.getArchetype().getArchetypeName()).
matches();
final Pattern archetypeName
The archetype name to match.
ArchetypeNameMatchCriteria(@NotNull final String archetypeName)
Creates a new instance.
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 archetype name.
Criteria for game object matchers.
Interface for MapArchObjects.