Class AreaThreats

java.lang.Object
dev.twilite.game.simulation.rules.threat.AreaThreats

public class AreaThreats extends Object
Factory methods for timed rectangular area threats.
  • Constructor Details

    • AreaThreats

      public AreaThreats()
  • Method Details

    • typed

      public static <I> AreaThreats.Typed<I> typed()
      Creates a typed area threat task factory.
      Type Parameters:
      I - plugin-defined input for each run
    • from

      public static <I> AreaThreats.Builder<I> from(Function<I,? extends Collection<SimulationAreaThreat>> threats)
      Applies timed rectangular area threats.
      Type Parameters:
      I - plugin-defined input for each run
      Parameters:
      threats - function that supplies area threats for the current input