20 package net.sf.gridarta.model.match;
22 import java.util.Arrays;
24 import org.jetbrains.annotations.NotNull;
48 this.types = types.clone();
54 return Arrays.binarySearch(types, gameObject.getTypeNo()) >= 0;
60 return super.toString() +
" (" + Arrays.toString(types) +
')';
Interface for classes that match GameObjects.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
final int [] types
The type numbers to match.
static final long serialVersionUID
The serial version UID.
GameObjects are the objects based on Archetypes found on maps.
TypeNrsGameObjectMatcher(@NotNull final int... types)
Creates a new instance.
An GameObjectMatcher matching certain archetype types.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.