Class NonAbsoluteExitPathChecker
- java.lang.Object
-
- net.sf.gridarta.model.validation.AbstractValidator<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.crossfire.model.validation.checks.NonAbsoluteExitPathChecker
-
- All Implemented Interfaces:
GameObjectValidator<GameObject,MapArchObject,Archetype>,Validator<GameObject,MapArchObject,Archetype>
public class NonAbsoluteExitPathChecker extends AbstractValidator<GameObject,MapArchObject,Archetype> implements GameObjectValidator<GameObject,MapArchObject,Archetype>
AMapValidatorthat checks for relative exit paths within unique maps. Such paths do not work reliably in Crossfire and Atrinik.
-
-
Constructor Summary
Constructors Constructor Description NonAbsoluteExitPathChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull GameObjectMatcher exitGameObjectMatcher)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateGameObject(@NotNull GameObject gameObject, @NotNull ErrorCollector<GameObject,MapArchObject,Archetype> errorCollector)Validates a game object.-
Methods inherited from class net.sf.gridarta.model.validation.AbstractValidator
getKey, isDefaultEnabled, isEnabled, setEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.model.validation.Validator
getKey, isDefaultEnabled, isEnabled, setEnabled
-
-
-
-
Constructor Detail
-
NonAbsoluteExitPathChecker
public NonAbsoluteExitPathChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull GameObjectMatcher exitGameObjectMatcher)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to useexitGameObjectMatcher- the game object matcher for matching exit objects
-
-
Method Detail
-
validateGameObject
public void validateGameObject(@NotNull @NotNull GameObject gameObject, @NotNull @NotNull ErrorCollector<GameObject,MapArchObject,Archetype> errorCollector)Description copied from interface:GameObjectValidatorValidates a game object.- Specified by:
validateGameObjectin interfaceGameObjectValidator<GameObject,MapArchObject,Archetype>- Parameters:
gameObject- the game object to validateerrorCollector- the error collector to report errors to
-
-