public class NonAbsoluteExitPathChecker extends AbstractValidator<GameObject,MapArchObject,Archetype> implements GameObjectValidator<GameObject,MapArchObject,Archetype>
MapValidator
that checks for
relative exit paths within unique maps. Such paths do not work reliably in
Crossfire and Atrinik.Constructor and Description |
---|
NonAbsoluteExitPathChecker(ValidatorPreferences validatorPreferences,
GameObjectMatcher exitGameObjectMatcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateGameObject(GameObject gameObject,
ErrorCollector<GameObject,MapArchObject,Archetype> errorCollector)
Validates a game object.
|
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public NonAbsoluteExitPathChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull GameObjectMatcher exitGameObjectMatcher)
validatorPreferences
- the validator preferences to useexitGameObjectMatcher
- the game object matcher for matching exit
objectspublic void validateGameObject(@NotNull GameObject gameObject, @NotNull ErrorCollector<GameObject,MapArchObject,Archetype> errorCollector)
validateGameObject
in interface GameObjectValidator<GameObject,MapArchObject,Archetype>
gameObject
- the game object to validateerrorCollector
- the error collector to report errors to