public class EmptySpawnPointError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectValidationError<G,A,R> implements CorrectableError
| Constructor and Description |
|---|
EmptySpawnPointError(G gameObject)
Create an EmptySpawnPointError.
|
| Modifier and Type | Method and Description |
|---|---|
void |
correct(java.awt.Component parentComponent)
Try to correct this error.
|
java.lang.String |
getParameter(int id)
Returns a parameter string to be used in the error message.
|
addGameObject, addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toStringpublic EmptySpawnPointError(@NotNull
G gameObject)
gameObject - the GameObject on which the error occurredpublic void correct(@NotNull
java.awt.Component parentComponent)
correct in interface CorrectableErrorparentComponent - parent component to display a dialog upon in case
this error needs to query information from the user for correction@Nullable public java.lang.String getParameter(int id)
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