Package net.sf.gridarta.model.select
Class ObjectNameMatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.select.ObjectNameMatchCriteria<G,A,R>
-
- All Implemented Interfaces:
MatchCriteria<G,A,R>
public class ObjectNameMatchCriteria<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 by object name.
-
-
Constructor Summary
Constructors Constructor Description ObjectNameMatchCriteria(@NotNull java.lang.String objectName)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(G gameObject)Whether aGameObjectmatches this criteria.
-
-
-
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
-
-