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

public class Threats extends Object
Factory methods for timed coordinate threats.
  • Constructor Details

    • Threats

      public Threats()
  • Method Details

    • typed

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

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