Class DoubleLayerError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.errors.ValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.MapValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.SquareValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.GameObjectsValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.DoubleLayerError<G,A,R>
-
- All Implemented Interfaces:
java.io.Serializable,CorrectableError
public class DoubleLayerError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectsValidationError<G,A,R> implements CorrectableError
Validation error that's used when the DoubleLayerChecker detected a possible error on the map.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGameObject(G gameObject)Adds an erroneousGameObject.voidcorrect(@NotNull java.awt.Component parentComponent)Try to correct this error.-
Methods inherited from class net.sf.gridarta.model.validation.errors.GameObjectsValidationError
getParameter
-
Methods inherited from class net.sf.gridarta.model.validation.errors.ValidationError
addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toString
-
-
-
-
Method Detail
-
correct
public void correct(@NotNull @NotNull java.awt.Component parentComponent)Description copied from interface:CorrectableErrorTry to correct this error.- Specified by:
correctin interfaceCorrectableError- Parameters:
parentComponent- parent component to display a dialog upon in case this error needs to query information from the user for correction
-
addGameObject
public void addGameObject(@NotNull G gameObject)Description copied from class:ValidationErrorAdds an erroneousGameObject.- Overrides:
addGameObjectin classValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
gameObject- the erroneous game object
-
-