Gridarta Editor
net.sf.gridarta.model.match.OrGameObjectMatcher Class Reference

A GameObjectMatcher that Or-combines other. More...

+ Inheritance diagram for net.sf.gridarta.model.match.OrGameObjectMatcher:
+ Collaboration diagram for net.sf.gridarta.model.match.OrGameObjectMatcher:

Public Member Functions

boolean isMatching (@NotNull final GameObject<?, ?, ?> gameObject)
 Matches an GameObject. More...
 
 OrGameObjectMatcher (@NotNull final Collection< GameObjectMatcher > matchers)
 Creates a new instance. More...
 

Private Attributes

final Collection< GameObjectMatchermatchers = new ArrayList<>()
 List of GameObjectMatcher to OR. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A GameObjectMatcher that Or-combines other.

GameObjectMatcher

s.

Author
Christian Hujer

Definition at line 32 of file OrGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ OrGameObjectMatcher()

net.sf.gridarta.model.match.OrGameObjectMatcher.OrGameObjectMatcher ( @NotNull final Collection< GameObjectMatcher matchers)

Creates a new instance.

Parameters
matchersthe matchers to Or

Definition at line 50 of file OrGameObjectMatcher.java.

Member Function Documentation

◆ isMatching()

boolean net.sf.gridarta.model.match.OrGameObjectMatcher.isMatching ( @NotNull final GameObject<?, ?, ?>  gameObject)

Matches an GameObject.

Parameters
gameObjectthe
GameObject
to match
Returns
true
if this matcher matches the given game object, otherwise
false

Implements net.sf.gridarta.model.match.GameObjectMatcher.

Definition at line 55 of file OrGameObjectMatcher.java.

Member Data Documentation

◆ matchers

final Collection<GameObjectMatcher> net.sf.gridarta.model.match.OrGameObjectMatcher.matchers = new ArrayList<>()
private

List of GameObjectMatcher to OR.

Definition at line 44 of file OrGameObjectMatcher.java.

◆ serialVersionUID

final long net.sf.gridarta.model.match.OrGameObjectMatcher.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 37 of file OrGameObjectMatcher.java.


The documentation for this class was generated from the following file: