Class TilePathsChecker<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.TilePathsChecker<G,A,R>
-
- All Implemented Interfaces:
MapValidator<G,A,R>,Validator<G,A,R>
public class TilePathsChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements MapValidator<G,A,R>
Validator that checks whether all tile paths are valid.
-
-
Constructor Summary
Constructors Constructor Description TilePathsChecker(@NotNull ValidatorPreferences validatorPreferences, int tilePaths)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateMap(@NotNull MapModel<G,A,R> mapModel, @NotNull ErrorCollector<G,A,R> errorCollector)Validate a map.-
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
-
TilePathsChecker
public TilePathsChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, int tilePaths)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to usetilePaths- the number of tile paths to check
-
-
Method Detail
-
validateMap
public void validateMap(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)Description copied from interface:MapValidatorValidate a map.- Specified by:
validateMapin interfaceMapValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapModel- Map to validateerrorCollector- Error collector to report errors to
-
-