Class SquareWithoutFloorChecker<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.SquareWithoutFloorChecker<G,A,R>
-
- All Implemented Interfaces:
SquareValidator<G,A,R>,Validator<G,A,R>
public class SquareWithoutFloorChecker<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 squares have a floor.
-
-
Constructor Summary
Constructors Constructor Description SquareWithoutFloorChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull java.lang.Integer... typeNumbers)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
-
SquareWithoutFloorChecker
public SquareWithoutFloorChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull java.lang.Integer... typeNumbers)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to usetypeNumbers- the object types to check
-
-
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
-
-