public class UnsetSlayingChecker<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>
Constructor and Description |
---|
UnsetSlayingChecker(ValidatorPreferences validatorPreferences,
java.lang.Integer... typeNumbers)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllowedValue(java.lang.String value)
Adds a value which does not trigger a warning.
|
void |
validateGameObject(G gameObject,
ErrorCollector<G,A,R> 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 UnsetSlayingChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull java.lang.Integer... typeNumbers)
validatorPreferences
- the validator preferences to usetypeNumbers
- The object types to check.public void addAllowedValue(@NotNull java.lang.String value)
value
- the allowed valuepublic void validateGameObject(@NotNull G gameObject, @NotNull ErrorCollector<G,A,R> errorCollector)
validateGameObject
in interface GameObjectValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to validateerrorCollector
- the error collector to report errors to