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

An GameObjectMatcher matching certain archetype types. More...

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

Public Member Functions

boolean isMatching (@NotNull final GameObject<?, ?, ?> gameObject)
 Matches a GameObject. More...
 
String toString ()
 
 TypeNrsGameObjectMatcher (@NotNull final int... types)
 Creates a new instance. More...
 

Private Attributes

final int[] types
 The type numbers to match. More...
 

Static Private Attributes

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

Detailed Description

An GameObjectMatcher matching certain archetype types.

Author
Christian Hujer

Definition at line 30 of file TypeNrsGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ TypeNrsGameObjectMatcher()

net.sf.gridarta.model.match.TypeNrsGameObjectMatcher.TypeNrsGameObjectMatcher ( @NotNull final int...  types)

Creates a new instance.

Parameters
typesthe types to match

Definition at line 47 of file TypeNrsGameObjectMatcher.java.

References net.sf.gridarta.model.match.TypeNrsGameObjectMatcher.types.

Member Function Documentation

◆ isMatching()

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

Matches a 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 53 of file TypeNrsGameObjectMatcher.java.

References net.sf.gridarta.model.match.TypeNrsGameObjectMatcher.types.

◆ toString()

String net.sf.gridarta.model.match.TypeNrsGameObjectMatcher.toString ( )

Member Data Documentation

◆ serialVersionUID

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

The serial version UID.

Definition at line 35 of file TypeNrsGameObjectMatcher.java.

◆ types

final int [] net.sf.gridarta.model.match.TypeNrsGameObjectMatcher.types
private

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