public class DoubleTypeError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectsValidationError<G,A,R> implements CorrectableError
| Constructor and Description |
|---|
DoubleTypeError(@NotNull MapSquare<G,A,R> mapSquare,
G gameObject)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGameObject(G gameObject)
Adds an erroneous
GameObject. |
void |
correct(@NotNull java.awt.Component parentComponent)
Try to correct this error.
|
getParameteraddMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toStringpublic void correct(@NotNull
@NotNull java.awt.Component parentComponent)
CorrectableErrorcorrect in interface CorrectableErrorparentComponent - parent component to display a dialog upon in case
this error needs to query information from the user for correctionpublic void addGameObject(@NotNull
G gameObject)
ValidationErrorGameObject.addGameObject in class ValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>gameObject - the erroneous game object