public abstract class AbstractShopSquareChecker<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>
MapValidator to detect shop squares which allow magic or prayers,
or which have adjacent squares that allow magic or prayers.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractShopSquareChecker(@NotNull ValidatorPreferences validatorPreferences)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean[][] |
findMatchingSquares(@NotNull MapModel<G,A,R> mapModel,
@NotNull GameObjectMatcher matcher)
Returns a
boolean array of the map size that marks squares that
contain game objects matching a given GameObjectMatcher. |
getKey, isDefaultEnabled, isEnabled, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateMapgetKey, isDefaultEnabled, isEnabled, setEnabledprotected AbstractShopSquareChecker(@NotNull
@NotNull ValidatorPreferences validatorPreferences)
validatorPreferences - the validator preferences to useprotected boolean[][] findMatchingSquares(@NotNull
@NotNull MapModel<G,A,R> mapModel,
@NotNull
@NotNull GameObjectMatcher matcher)
boolean array of the map size that marks squares that
contain game objects matching a given GameObjectMatcher.mapModel - the map to checkmatcher - the matcher to use