Class MovingThreats

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

public class MovingThreats extends Object
Factory methods for path-dependent moving threats.
  • Constructor Details

    • MovingThreats

      public MovingThreats()
  • Method Details

    • typed

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

      public static <I> MovingThreats.Builder<I> from(Function<I,? extends Collection<SimulationMovingThreat>> threats)
      Starts a moving threat task builder.
      Type Parameters:
      I - plugin-defined input for each run
      Parameters:
      threats - function that supplies moving threats for the current input