Class DoubleLayerChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.AbstractValidator<G,A,R>
-
- net.sf.gridarta.model.validation.checks.DoubleLayerChecker<G,A,R>
-
- All Implemented Interfaces:
SquareValidator<G,A,R>,Validator<G,A,R>
public class DoubleLayerChecker<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>
A SquareValidator to assert that there are no two objects within the same layer.
-
-
Constructor Summary
Constructors Constructor Description DoubleLayerChecker(@NotNull ValidatorPreferences validatorPreferences)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateSquare(@NotNull MapSquare<G,A,R> mapSquare, @NotNull ErrorCollector<G,A,R> errorCollector)Validate a map square.-
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
-
DoubleLayerChecker
public DoubleLayerChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to use
-
-
Method Detail
-
validateSquare
public void validateSquare(@NotNull @NotNull MapSquare<G,A,R> mapSquare, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)Description copied from interface:SquareValidatorValidate a map square.- Specified by:
validateSquarein interfaceSquareValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapSquare- Square to validateerrorCollector- Error collector to report errors to
-
-