 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.validation.checks;
22 import java.awt.Point;
31 import org.jetbrains.annotations.NotNull;
59 super(validatorPreferences);
68 final Point point =
new Point();
69 for (point.x = 0; point.x < shopSquares.length && point.x < noSpellsSquares.length; point.x++) {
70 for (point.y = 0; point.y < shopSquares[point.x].length && point.y < noSpellsSquares[point.x].length; point.y++) {
71 if (shopSquares[point.x][point.y] && noSpellsSquares[point.x][point.y]) {
A MapModel reflects the data of a map.
Base package of all Gridarta classes.
A map square that is a shop tile and contains paid items.
Interface for classes that match GameObjects.
A net.sf.gridarta.model.validation.MapValidator to detect shop squares that contain paid items.
Reflects a game object (object on a map).
Configuration parameters for Validators.
GameObjects are the objects based on Archetypes found on maps.
PaidItemShopSquareChecker(@NotNull final ValidatorPreferences validatorPreferences, @NotNull final GameObjectMatcher shopMatcher, @NotNull final GameObjectMatcher paidItemMatcher)
Creates a new instance.
Classes related to matching {GameObjects}, so called { net.sf.gridarta.model.match....
Interface for MapArchObjects.
final GameObjectMatcher shopMatcher
The GameObjectMatcher for finding shop squares.
An interface for classes that collect errors.
This package contains the framework for validating maps.
final GameObjectMatcher paidItemMatcher
The GameObjectMatcher for finding paid items.
A MapValidator to detect shop squares which allow magic or prayers, or which have adjacent squares th...
boolean[][] findMatchingSquares( @NotNull final MapModel< G, A, R > mapModel, @NotNull final GameObjectMatcher matcher)
Returns a.
void validateMap(@NotNull final MapModel< G, A, R > mapModel, @NotNull final ErrorCollector< G, A, R > errorCollector)