Class ShopSquareChecker<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.AbstractShopSquareChecker<G,A,R>
-
- net.sf.gridarta.model.validation.checks.ShopSquareChecker<G,A,R>
-
- All Implemented Interfaces:
MapValidator<G,A,R>,Validator<G,A,R>
public class ShopSquareChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractShopSquareChecker<G,A,R>
AMapValidatorto detect shop squares which allow magic or prayers.
-
-
Constructor Summary
Constructors Constructor Description ShopSquareChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull GameObjectMatcher shopMatcher, @NotNull GameObjectMatcher noSpellsMatcher, @Nullable GameObjectMatcher blockedMatcher)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.checks.AbstractShopSquareChecker
findMatchingSquares
-
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
-
ShopSquareChecker
public ShopSquareChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull GameObjectMatcher shopMatcher, @NotNull @NotNull GameObjectMatcher noSpellsMatcher, @Nullable @Nullable GameObjectMatcher blockedMatcher)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to useshopMatcher- the game object matcher for finding shop squaresnoSpellsMatcher- the game object matcher for finding no-spell squaresblockedMatcher- the game object matcher for finding blocked squares
-
-
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.- Parameters:
mapModel- Map to validateerrorCollector- Error collector to report errors to
-
-