 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.match;
23 import org.jetbrains.annotations.NotNull;
73 final Comparable<String> actual;
74 if (
name.equals(
"msg")) {
75 final String tmp = gameObject.getMsgText(
true);
76 actual = tmp ==
null ?
"" : tmp;
80 return actual.compareTo(
value);
int compareValue(@NotNull final GameObject<?, ?, ?> gameObject)
Compares the attribute value of a given game object with the expected value.
final String value
The attribute value to match.
Base package of all Gridarta classes.
An GameObjectMatcher that matches a attribute value.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
final boolean useDefArch
Whether to query the archetype as well.
A AttributeGameObjectMatcher that compares attributes values using "string" type.
final Operation operation
The operator to use.
static final long serialVersionUID
The serial version UID.
StringAttributeGameObjectMatcher(@NotNull final String name, @NotNull final Operation operation, @NotNull final String value, final boolean useDefArch)
Creates a new instance.
final String name
The attribute name to match.