20 package net.sf.gridarta.model.validation.checks;
31 import org.jetbrains.annotations.NotNull;
37 public class SysObjectNotOnLayerZeroChecker<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> {
44 super(validatorPreferences);
T getHead()
Return the head part of a multi-part object.
static final String SYS_OBJECT
The name of the "sys_object" attribute.
This is the base class for validators.
SysObjectNotOnLayerZeroChecker(@NotNull final ValidatorPreferences validatorPreferences)
Creates a new instance.
Interface for GameObject Validators.
This package contains the framework for validating maps.
static final String LAYER
The name of the "layer" attribute.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
ValidationError that's used if an GameObject that is a SysObject is found on a layer other than 0...
Configuration parameters for Validators.
GameObjects are the objects based on Archetypes found on maps.
int getAttributeInt(@NotNull String attributeName, boolean queryArchetype)
Returns the requested attribute value of this GameObject as.
final ValidatorPreferences validatorPreferences
The ValidatorPreferences to use.
A GameObjectValidator to assert that sys objects are only in layer 0.
An interface for classes that collect errors.
void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector< G, A, R > errorCollector)
Validates a game object.
Default implementation for GameObject implementing classes.
Interface for MapArchObjects.