 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.validation.checks;
31 import org.jetbrains.annotations.NotNull;
37 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> {
65 if (difficulty < minDifficulty || difficulty >
maxDifficulty) {
A MapModel reflects the data of a map.
Base package of all Gridarta classes.
Validation error that's used when a map has wrong tile paths.
void validateMap(@NotNull final MapModel< G, A, R > mapModel, @NotNull final ErrorCollector< G, A, R > errorCollector)
Validate a map.
Reflects a game object (object on a map).
final int maxDifficulty
The maximal acceptable difficulty.
final ValidatorPreferences validatorPreferences
The ValidatorPreferences to use.
Interface for Map Validators.
Configuration parameters for Validators.
GameObjects are the objects based on Archetypes found on maps.
int getDifficulty()
Returns the map's difficulty.
Interface for MapArchObjects.
MapDifficultyChecker(@NotNull final ValidatorPreferences validatorPreferences, final int minDifficulty, final int maxDifficulty)
Creates a new instance.
An interface for classes that collect errors.
This is the base class for validators.
This package contains the framework for validating maps.
Validator that checks whether the map has a valid difficulty.
final int minDifficulty
The minimal acceptable difficulty.