Class RangeEntry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.checks.RangeEntry<G,A,R>
-
public class RangeEntry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectAn attribute to check.
-
-
Constructor Summary
Constructors Constructor Description RangeEntry(@NotNull java.lang.String displayName, @NotNull Range range)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(int value, G gameObject, @NotNull ErrorCollector<G,A,R> errorCollector)Validates an attribute value.
-
-
-
Constructor Detail
-
RangeEntry
public RangeEntry(@NotNull @NotNull java.lang.String displayName, @NotNull @NotNull Range range)Creates a new instance.- Parameters:
displayName- the attribute name to display in error messagesrange- the attribute values range to check for
-
-
Method Detail
-
validate
public void validate(int value, @NotNull G gameObject, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)Validates an attribute value.- Parameters:
value- the attribute value to checkgameObject- the game object containing the attribute valueerrorCollector- the error collector to receive the errors
-
-