Gridarta Editor
net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

A MatchCriteria that matches by object name. More...

+ Inheritance diagram for net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

boolean matches (@NotNull final G gameObject)
 
 ObjectNameMatchCriteria (@NotNull final String objectName)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.select.MatchCriteria< G, A, R >
boolean matches ( @NotNull G gameObject)
 Whether a GameObject matches this criteria. More...
 

Private Attributes

final Pattern objectName
 The object name to match. More...
 

Detailed Description

A MatchCriteria that matches by object name.

Author
Andreas Kirschbaum

Definition at line 33 of file ObjectNameMatchCriteria.java.

Constructor & Destructor Documentation

◆ ObjectNameMatchCriteria()

net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ObjectNameMatchCriteria ( @NotNull final String  objectName)

Creates a new instance.

Parameters
objectNamethe object name to match

Definition at line 45 of file ObjectNameMatchCriteria.java.

Member Function Documentation

◆ matches()

boolean net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.matches ( @NotNull final G  gameObject)

Definition at line 50 of file ObjectNameMatchCriteria.java.

Member Data Documentation

◆ objectName

final Pattern net.sf.gridarta.model.select.ObjectNameMatchCriteria< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.objectName
private

The object name to match.

Definition at line 39 of file ObjectNameMatchCriteria.java.


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