20 package net.sf.gridarta.var.crossfire.model.validation.checks;
37 import org.jetbrains.annotations.NotNull;
60 super(validatorPreferences);
66 if (!exitGameObjectMatcher.
isMatching(gameObject)) {
71 if (mapSquare == null) {
final GameObjectMatcher exitGameObjectMatcher
The GameObjectMatcher for matching exit objects.
MapSquare< G, A, R > getMapSquare()
A MapModel reflects the data of a map.
NonAbsoluteExitPathChecker(@NotNull final ValidatorPreferences validatorPreferences, @NotNull final GameObjectMatcher exitGameObjectMatcher)
Creates a new instance.
This is the base class for validators.
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
Exception thrown if a game object does not specify a valid exit path.
Interface for GameObject Validators.
MapModel< G, A, R > getMapModel()
Returns the MapModel this map square is part of.
This package contains the framework for validating maps.
A MapPath that is absolute, that is, it starts with a "/".
void validateGameObject(@NotNull final GameObject gameObject, @NotNull final ErrorCollector< GameObject, MapArchObject, Archetype > errorCollector)
MapArchObject contains the specific meta data about a map that is stored in the map-arch, at the very beginning of the map file.
Handles the Crossfire variants of GameObjects and Archetypes.
Represents a maps directory local map path.
Handles the Crossfire GameObjects.
Base package of all Gridarta classes.
boolean isUnique()
Get whether this map is unique.
MapPath getMapPath()
Returns the map path.
Implements Crossfire archetypes.
Configuration parameters for Validators.
Main package of Gridarta4Crossfire, contains all classes specific to the Crossfire version of the Gri...
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
final ValidatorPreferences validatorPreferences
The ValidatorPreferences to use.
A GameObjectValidationError that describes an exit GameObject having an invalid exit path...
Represents a location on a map consisting of a map path and a map coordinate.
An interface for classes that collect errors.
This package contains the checks for validating maps.
A net.sf.gridarta.model.validation.MapValidator that checks for relative exit paths within unique map...
boolean isMatching(@NotNull GameObject<?, ?, ?> gameObject)
Matches an GameObject.