 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.validation.errors;
22 import java.awt.Component;
23 import java.util.ArrayList;
24 import java.util.Collection;
25 import java.util.Collections;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
67 this.blockers =
new ArrayList<>(
blockers);
77 return Collections.unmodifiableCollection(
blockers);
90 public void correct(@NotNull
final Component parentComponent) {
void correct(@NotNull final Component parentComponent)
Try to correct this error.
Base package of all Gridarta classes.
static final long serialVersionUID
The serial version UID.
Reflects a game object (object on a map).
BlockedMobOrSpawnPointError(@NotNull final MapSquare< G, A, R > mapSquare, @NotNull final Collection< G > blockers, @NotNull final Collection< G > mobsOrSpawnPoints)
Creates a new instance.
final Collection< G > mobsOrSpawnPoints
Mob or spawn GameObjects.
GameObjects are the objects based on Archetypes found on maps.
String getParameter(final int id)
Interface for MapArchObjects.
Collection< G > getMobsOrSpawnPoints()
Returns the mob or spawn point game objects.
Class for validation errors on a MapSquare.
This interface can be implemented by errors that provide a facility to correct them.
Collection< G > getBlockers()
Returns the blocking game objects.
Validation error that's used when the BlockedMobOrSpawnPointChecker detected a possible error on the ...
final Collection< G > blockers
Blocking GameObjects.