Class MapDifficultyChecker<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.MapDifficultyChecker<G,A,R>
-
- All Implemented Interfaces:
MapValidator<G,A,R>,Validator<G,A,R>
public class MapDifficultyChecker<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 the map has a valid difficulty.
-
-
Constructor Summary
Constructors Constructor Description MapDifficultyChecker(@NotNull ValidatorPreferences validatorPreferences, int minDifficulty, int maxDifficulty)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
-
MapDifficultyChecker
public MapDifficultyChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, int minDifficulty, int maxDifficulty)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to useminDifficulty- the minimal acceptable difficultymaxDifficulty- the maximal acceptable difficulty
-
-
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
-
-