public class MapDifficultyError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends MapValidationError<G,A,R>
Constructor and Description |
---|
MapDifficultyError(@NotNull MapModel<G,A,R> mapModel,
int difficulty)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getDifficulty()
Returns the difficulty that was wrong.
|
@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
public int getDifficulty()
@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