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

An GameObjectMatcher that simply matches an archetype name. More...

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

Public Member Functions

String getName ()
 Returns the archetype name matched by this matcher. More...
 
boolean isMatching (@NotNull final GameObject<?, ?, ?> gameObject)
 Matches an GameObject. More...
 
 MutableNameGameObjectMatcher (@NotNull final String name)
 Creates a new instance. More...
 
void setName (@NotNull final String name)
 Sets the archetype name to match. More...
 

Private Attributes

String name
 The archetype name to match. More...
 

Static Private Attributes

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

Detailed Description

An GameObjectMatcher that simply matches an archetype name.

This is probably the most basic and most simple implementation of GameObjectMatcher.

Author
Christian Hujer

Definition at line 31 of file MutableNameGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ MutableNameGameObjectMatcher()

net.sf.gridarta.model.match.MutableNameGameObjectMatcher.MutableNameGameObjectMatcher ( @NotNull final String  name)

Creates a new instance.

Parameters
namethe archetype name to match against

Definition at line 49 of file MutableNameGameObjectMatcher.java.

References net.sf.gridarta.model.match.MutableNameGameObjectMatcher.name.

Member Function Documentation

◆ getName()

String net.sf.gridarta.model.match.MutableNameGameObjectMatcher.getName ( )

Returns the archetype name matched by this matcher.

Returns
the archetype name matched

Definition at line 63 of file MutableNameGameObjectMatcher.java.

References net.sf.gridarta.model.match.MutableNameGameObjectMatcher.name.

◆ isMatching()

boolean net.sf.gridarta.model.match.MutableNameGameObjectMatcher.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 54 of file MutableNameGameObjectMatcher.java.

◆ setName()

void net.sf.gridarta.model.match.MutableNameGameObjectMatcher.setName ( @NotNull final String  name)

Sets the archetype name to match.

Parameters
namethe archetype name to match against

Definition at line 71 of file MutableNameGameObjectMatcher.java.

References net.sf.gridarta.model.match.MutableNameGameObjectMatcher.name.

Member Data Documentation

◆ name

◆ serialVersionUID

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

The serial version UID.

Definition at line 36 of file MutableNameGameObjectMatcher.java.


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