Package net.sf.gridarta.model.match
Class OrGameObjectMatcher
- java.lang.Object
-
- net.sf.gridarta.model.match.OrGameObjectMatcher
-
- All Implemented Interfaces:
java.io.Serializable,GameObjectMatcher
public class OrGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
AGameObjectMatcherthat Or-combines otherGameObjectMatchers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrGameObjectMatcher(@NotNull java.util.Collection<GameObjectMatcher> matchers)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMatching(@NotNull GameObject<?,?,?> gameObject)Matches aGameObject.
-
-
-
Constructor Detail
-
OrGameObjectMatcher
public OrGameObjectMatcher(@NotNull @NotNull java.util.Collection<GameObjectMatcher> matchers)Creates a new instance.- Parameters:
matchers- the matchers to Or
-
-
Method Detail
-
isMatching
public boolean isMatching(@NotNull @NotNull GameObject<?,?,?> gameObject)Description copied from interface:GameObjectMatcherMatches aGameObject.- Specified by:
isMatchingin interfaceGameObjectMatcher- Parameters:
gameObject- theGameObjectto match- Returns:
trueif this matcher matches the given game object, otherwisefalse
-
-