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

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

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

Public Member Functions

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

Private Attributes

final Collection< GameObjectMatchermatchers = new ArrayList<>()
 The list of GameObjectMatchers to AND. More...
 

Static Private Attributes

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

Detailed Description

A GameObjectMatcher that And-combines other.

GameObjectMatcher

s.

Author
Christian Hujer

Definition at line 32 of file AndGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ AndGameObjectMatcher()

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

Creates an.

.

Parameters
matchersthe matchers to And

Definition at line 50 of file AndGameObjectMatcher.java.

Member Function Documentation

◆ isMatching()

boolean net.sf.gridarta.model.match.AndGameObjectMatcher.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 AndGameObjectMatcher.java.

Member Data Documentation

◆ matchers

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

The list of GameObjectMatchers to AND.

Definition at line 44 of file AndGameObjectMatcher.java.

◆ serialVersionUID

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

The serial version UID.

Definition at line 37 of file AndGameObjectMatcher.java.


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