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(ValidatorPreferences validatorPreferences,
GameObjectMatcher shopMatcher,
GameObjectMatcher noSpellsMatcher,
GameObjectMatcher blockedMatcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateMap(MapModel<G,A,R> mapModel,
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 ValidatorPreferences validatorPreferences, @NotNull GameObjectMatcher shopMatcher, @NotNull GameObjectMatcher noSpellsMatcher, @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
squares