public class AttributeRangeError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectValidationError<G,A,R>
Constructor and Description |
---|
AttributeRangeError(G gameObject,
java.lang.String attributeName,
java.lang.String curValue,
java.lang.String minValue,
java.lang.String maxValue)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
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 AttributeRangeError(@NotNull G gameObject, @NotNull java.lang.String attributeName, @NotNull java.lang.String curValue, @NotNull java.lang.String minValue, @NotNull java.lang.String maxValue)
gameObject
- The game object having an out of range value.attributeName
- The suspicious attribute name.curValue
- the current (incorrect) attribute valueminValue
- the minimal allowed attribute valuemaxValue
- the maximal allowed attribute value@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