 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.validation.checks;
32 import org.jetbrains.annotations.NotNull;
38 public class UndefinedFaceChecker<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> {
51 final String animName = gameObject.getAnimName();
52 if (animName !=
null && !animName.equals(
"NONE")) {
55 final String faceName = gameObject.getFaceName();
56 if (faceName !=
null) {
Enumeration describing the state of the face.
Base package of all Gridarta classes.
UndefinedFaceChecker(@NotNull final ValidatorPreferences validatorPreferences)
Creates a new instance.
Reflects a game object (object on a map).
A GameObjectValidationError indicating a game object references an undefined animation.
Checks that a game object does not reference an undefined face.
final ValidatorPreferences validatorPreferences
The ValidatorPreferences to use.
Configuration parameters for Validators.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
An interface for classes that collect errors.
A GameObjectValidationError indicating a game object references an undefined face.
This is the base class for validators.
This package contains the framework for validating maps.
void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector< G, A, R > errorCollector)
Validates a game object.
Interface for GameObject Validators.
FACE_NOT_FOUND
The face of this GameObject was not found.