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(@NotNull ValidatorPreferences validatorPreferences,
@NotNull GameObjectMatcher exitGameObjectMatcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateGameObject(@NotNull GameObject gameObject,
@NotNull 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 @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull GameObjectMatcher exitGameObjectMatcher)
validatorPreferences
- the validator preferences to useexitGameObjectMatcher
- the game object matcher for matching exit
objectspublic void validateGameObject(@NotNull @NotNull GameObject gameObject, @NotNull @NotNull ErrorCollector<GameObject,MapArchObject,Archetype> errorCollector)
GameObjectValidator
validateGameObject
in interface GameObjectValidator<GameObject,MapArchObject,Archetype>
gameObject
- the game object to validateerrorCollector
- the error collector to report errors to