![]() |
Gridarta Editor
|
A AttributeGameObjectMatcher that compares attributes values using "int" type. More...
Public Member Functions | |
IntAttributeGameObjectMatcher (@NotNull final String name, @NotNull final Operation operation, @NotNull final String value, final boolean useDefArch) throws ParsingException | |
Creates an. More... | |
![]() | |
boolean | isMatching (@NotNull final GameObject<?, ?, ?> gameObject) |
Matches a GameObject. More... | |
Protected Member Functions | |
int | compareValue (@NotNull final GameObject<?, ?, ?> gameObject) |
Compares the attribute value of a given game object with the expected value. More... | |
![]() | |
AttributeGameObjectMatcher (@NotNull final Operation operation) | |
Creates an. More... | |
Private Attributes | |
final String | name |
The attribute name to match. More... | |
final boolean | useDefArch |
Whether to query the archetype as well. More... | |
final int | value |
The attribute value to match. More... | |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
The serial version UID. More... | |
A AttributeGameObjectMatcher that compares attributes values using "int" type.
Definition at line 30 of file IntAttributeGameObjectMatcher.java.
net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.IntAttributeGameObjectMatcher | ( | @NotNull final String | name, |
@NotNull final Operation | operation, | ||
@NotNull final String | value, | ||
final boolean | useDefArch | ||
) | throws ParsingException |
Creates an.
.
name | the attribute name to match |
operation | the Operator
|
value | the attribute value to compare with |
useDefArch | whether to query the archetype as well |
ParsingException | if the value is not an integer |
Definition at line 64 of file IntAttributeGameObjectMatcher.java.
References net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.name, net.sf.gridarta.model.match.AttributeGameObjectMatcher.operation, net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.useDefArch, and net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.value.
|
protected |
Compares the attribute value of a given game object with the expected value.
gameObject | the game object |
Reimplemented from net.sf.gridarta.model.match.AttributeGameObjectMatcher.
Definition at line 76 of file IntAttributeGameObjectMatcher.java.
References net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.name, net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.useDefArch, and net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.value.
|
private |
The attribute name to match.
@serial
Definition at line 42 of file IntAttributeGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.compareValue(), and net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.IntAttributeGameObjectMatcher().
|
staticprivate |
The serial version UID.
Definition at line 35 of file IntAttributeGameObjectMatcher.java.
|
private |
Whether to query the archetype as well.
@serial
Definition at line 54 of file IntAttributeGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.compareValue(), and net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.IntAttributeGameObjectMatcher().
|
private |
The attribute value to match.
@serial
Definition at line 48 of file IntAttributeGameObjectMatcher.java.
Referenced by net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.compareValue(), and net.sf.gridarta.model.match.IntAttributeGameObjectMatcher.IntAttributeGameObjectMatcher().