Class EnvironmentChecker<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • EnvironmentChecker

        public EnvironmentChecker​(@NotNull
                                  @NotNull ValidatorPreferences validatorPreferences)
        Creates a new instance.
        Parameters:
        validatorPreferences - the validator preferences to use
    • Method Detail

      • addNoMap

        public void addNoMap​(@NotNull
                             @NotNull ArchetypeType archetypeType)
        Marks an ArchetypeType to not be allowed directly on maps.
        Parameters:
        archetypeType - the archetype type
      • addInv

        public void addInv​(@NotNull
                           @NotNull ArchetypeType archetypeType,
                           int @NotNull [] types)
        Sets the allowed environment game object types for an ArchetypeType.
        Parameters:
        archetypeType - the archetype type
        types - the allowed environment types