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(java.lang.String displayName,
Range range)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(int value,
G gameObject,
ErrorCollector<G,A,R> errorCollector)
Validate an attribute value.
|
public RangeEntry(@NotNull java.lang.String displayName, @NotNull Range range)
displayName
- The attribute name to display in error messages.range
- The attribute values range to check for.public void validate(int value, @NotNull G gameObject, @NotNull ErrorCollector<G,A,R> errorCollector)
value
- The attribute value to check.gameObject
- The game object containing the attribute value.errorCollector
- The error collector to receive the errors.