public class RangeEntry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
RangeEntry(@NotNull java.lang.String displayName,
@NotNull Range range)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(int value,
G gameObject,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validates an attribute value.
|
public RangeEntry(@NotNull @NotNull java.lang.String displayName, @NotNull @NotNull Range range)
displayName
- the attribute name to display in error messagesrange
- the attribute values range to check forpublic void validate(int value, @NotNull G gameObject, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)
value
- the attribute value to checkgameObject
- the game object containing the attribute valueerrorCollector
- the error collector to receive the errors