 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.validation.checks;
31 import org.jetbrains.annotations.NotNull;
37 public class ConnectedPickableChecker<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> extends
AbstractValidator<G, A, R> implements
GameObjectValidator<G, A, R> {
52 final boolean connected = !connection.isEmpty();
53 if (connected && pickable) {
Base package of all Gridarta classes.
int getAttributeInt(@NotNull String attributeName, boolean queryArchetype)
Returns the requested attribute value of this GameObject as.
ConnectedPickableChecker(@NotNull final ValidatorPreferences validatorPreferences)
Creates a new instance.
A Validator to assert that connected objects cannot be picked up.
Reflects a game object (object on a map).
final ValidatorPreferences validatorPreferences
The ValidatorPreferences to use.
A MapValidator that checks for mobs outside spawn points.
Configuration parameters for Validators.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
An interface for classes that collect errors.
This is the base class for validators.
This package contains the framework for validating maps.
String NO_PICK
The name of the "no_pick" attribute.
void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector< G, A, R > errorCollector)
Validates a game object.
T getHead()
Return the head part of a multi-part object.
Interface for GameObject Validators.
String getAttributeString(@NotNull String attributeName, boolean queryArchetype)
Returns the requested attribute value of this GameObject as {}.