Class RangeEntry<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.Object
    An 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
      void validate​(int value, G gameObject, @NotNull ErrorCollector<G,​A,​R> errorCollector)
      Validates an attribute value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 messages
        range - 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 check
        gameObject - the game object containing the attribute value
        errorCollector - the error collector to receive the errors