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();
76 actual = tmp == null ?
"" : tmp;
78 actual = gameObject.getAttributeString(name, useDefArch);
80 return actual.compareTo(value);
Base package of all Gridarta classes.
Reflects a game object (object on a map).
StringAttributeGameObjectMatcher(@NotNull final String name, @NotNull final Operation operation, @NotNull final String value, final boolean useDefArch)
Creates a new instance.
An GameObjectMatcher that matches an attribute value.
GameObjects are the objects based on Archetypes found on maps.
A AttributeGameObjectMatcher that compares attributes values using "string" type. ...
final String value
The attribute value to match.
final String name
The attribute name to match.
int compareValue(@NotNull final GameObject<?, ?, ?> gameObject)
final boolean useDefArch
Whether to query the archetype as well.
static final long serialVersionUID
The serial version UID.
final Operation operation
The operator to use.