 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.match;
23 import org.jetbrains.annotations.NotNull;
68 this.value = Integer.parseInt(
value);
69 }
catch (
final NumberFormatException ex) {
Base package of all Gridarta classes.
An GameObjectMatcher that matches a attribute value.
Reflects a game object (object on a map).
A AttributeGameObjectMatcher that compares attributes values using "int" type.
IntAttributeGameObjectMatcher(@NotNull final String name, @NotNull final Operation operation, @NotNull final String value, final boolean useDefArch)
Creates an.
int compareValue(@NotNull final GameObject<?, ?, ?> gameObject)
Compares the attribute value of a given game object with the expected value.
GameObjects are the objects based on Archetypes found on maps.
static final long serialVersionUID
The serial version UID.
final String name
The attribute name to match.
final boolean useDefArch
Whether to query the archetype as well.
Thrown when a parsing error occurs.
final Operation operation
The operator to use.
final int value
The attribute value to match.