Class MovingThreats
java.lang.Object
dev.twilite.game.simulation.rules.threat.MovingThreats
Factory methods for path-dependent moving threats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBuilder for moving threats that need a path-dependent stepper.static classTyped moving threat task factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> MovingThreats.Builder<I> from(Function<I, ? extends Collection<SimulationMovingThreat>> threats) Starts a moving threat task builder.static <I> MovingThreats.Typed<I> typed()Creates a typed moving threat task factory.
-
Constructor Details
-
MovingThreats
public MovingThreats()
-
-
Method Details
-
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
-