public class ShopSquareChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractShopSquareChecker<G,A,R>
MapValidator
to detect shop
squares which allow magic or prayers.Constructor and Description |
---|
ShopSquareChecker(@NotNull ValidatorPreferences validatorPreferences,
@NotNull GameObjectMatcher shopMatcher,
@NotNull GameObjectMatcher noSpellsMatcher,
@Nullable GameObjectMatcher blockedMatcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateMap(@NotNull MapModel<G,A,R> mapModel,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validate a map.
|
findMatchingSquares
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public ShopSquareChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull GameObjectMatcher shopMatcher, @NotNull @NotNull GameObjectMatcher noSpellsMatcher, @Nullable @Nullable GameObjectMatcher blockedMatcher)
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
squarespublic void validateMap(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)
MapValidator
mapModel
- Map to validateerrorCollector
- Error collector to report errors to