public class AttributeValueMatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements MatchCriteria<G,A,R>
MatchCriteria that matches an attribute value.| Constructor and Description |
|---|
AttributeValueMatchCriteria(@NotNull java.lang.String attributeName,
@NotNull java.lang.String attributeValue)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(G gameObject)
Whether a
GameObject matches this criteria. |
public AttributeValueMatchCriteria(@NotNull
@NotNull java.lang.String attributeName,
@NotNull
@NotNull java.lang.String attributeValue)
attributeName - the attribute name to checkattributeValue - the attribute value to checkpublic boolean matches(@NotNull
G gameObject)
MatchCriteriaGameObject matches this criteria.matches in interface MatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>gameObject - the game object to check