public abstract class AbstractSuspiciousMsgError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectValidationError<G,A,R> implements CorrectableError
SuspiciousMsgChecker
detected a possible error on a game object.Modifier | Constructor and Description |
---|---|
protected |
AbstractSuspiciousMsgError(G gameObject,
@NotNull java.lang.String line)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
correct(@NotNull java.awt.Component parentComponent)
Try to correct this error.
|
@Nullable java.lang.String |
getParameter(int id)
Returns a parameter string to be used in the error message.
|
addGameObject, addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toString
protected AbstractSuspiciousMsgError(@NotNull G gameObject, @NotNull @NotNull java.lang.String line)
gameObject
- the game object on which the error occurredline
- the line that contains the errorpublic void correct(@NotNull @NotNull java.awt.Component parentComponent)
CorrectableError
correct
in interface CorrectableError
parentComponent
- parent component to display a dialog upon in case
this error needs to query information from the user for correction@Nullable public @Nullable java.lang.String getParameter(int id)
ValidationError
id
}.getParameter
in class ValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
id
- the error id