Class MovingThreats.Typed<I>
java.lang.Object
dev.twilite.game.simulation.rules.threat.MovingThreats.Typed<I>
- Type Parameters:
I- plugin-defined input for each run
- Enclosing class:
MovingThreats
Typed moving threat task factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrom(Function<I, ? extends Collection<SimulationMovingThreat>> threats) Starts a moving threat task builder.
-
Constructor Details
-
Typed
public Typed()
-
-
Method Details
-
from
public MovingThreats.Builder<I> from(Function<I, ? extends Collection<SimulationMovingThreat>> threats) Starts a moving threat task builder.- Parameters:
threats- function that supplies moving threats for the current input
-