public class DoubleTypeChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements SquareValidator<G,A,R>
Constructor and Description |
---|
DoubleTypeChecker(@NotNull ValidatorPreferences validatorPreferences)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateSquare(@NotNull MapSquare<G,A,R> mapSquare,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validate a map square.
|
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public DoubleTypeChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences)
validatorPreferences
- the validator preferences to usepublic void validateSquare(@NotNull @NotNull MapSquare<G,A,R> mapSquare, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)
SquareValidator
validateSquare
in interface SquareValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapSquare
- Square to validateerrorCollector
- Error collector to report errors to