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);
86 return Collections.unmodifiableCollection(mobsOrSpawnPoints);
90 public void correct(@NotNull
final Component parentComponent) {
void correct(@NotNull final Component parentComponent)
Try to correct this error.
Collection< G > getMobsOrSpawnPoints()
Returns the mob or spawn point GameObjects.
Validation error that's used when the BlockedMobOrSpawnPointChecker detected a possible error on the ...
Base package of all Gridarta classes.
Reflects a game object (object on a map).
String getParameter(final int id)
final Collection< G > mobsOrSpawnPoints
Mob or spawn GameObjects.
GameObjects are the objects based on Archetypes found on maps.
BlockedMobOrSpawnPointError(@NotNull final MapSquare< G, A, R > mapSquare, @NotNull final Collection< G > blockers, @NotNull final Collection< G > mobsOrSpawnPoints)
Create a BlockedMobOrSpawnPointError.
static final long serialVersionUID
The serial version UID.
final Collection< G > blockers
Blocking GameObjects.
This interface can be implemented by errors that provide a facility to correct them.
Collection< G > getBlockers()
Returns the blocking GameObjects.
Class for validation errors on a MapSquare.
Interface for MapArchObjects.