Package net.sf.gridarta.model.select
Class AttributeOtherValueMatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.select.AttributeOtherValueMatchCriteria<G,A,R>
-
- All Implemented Interfaces:
MatchCriteria<G,A,R>
public class AttributeOtherValueMatchCriteria<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>
AMatchCriteriathat matches attribute values of all but a set of attributes.
-
-
Constructor Summary
Constructors Constructor Description AttributeOtherValueMatchCriteria(@NotNull java.lang.String attributeValue, @NotNull java.lang.String... attributeNames)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(G gameObject)Whether aGameObjectmatches this criteria.
-
-
-
Constructor Detail
-
AttributeOtherValueMatchCriteria
public AttributeOtherValueMatchCriteria(@NotNull @NotNull java.lang.String attributeValue, @NotNull @NotNull java.lang.String... attributeNames)Creates a new instance.- Parameters:
attributeValue- the attribute value to checkattributeNames- the attribute names not to check
-
-
Method Detail
-
matches
public boolean matches(@NotNull G gameObject)Description copied from interface:MatchCriteriaWhether aGameObjectmatches this criteria.- Specified by:
matchesin interfaceMatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
gameObject- the game object to check- Returns:
- whether the game object matches
-
-