Class Threats
java.lang.Object
dev.twilite.game.simulation.rules.threat.Threats
Factory methods for timed coordinate threats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBuilder for timed coordinate threat tasks.static classTyped threat task factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> Threats.Builder<I> from(Function<I, ? extends Collection<SimulationThreat>> threats) Applies timed coordinate threats.static <I> Threats.Typed<I> typed()Creates a typed threat task factory.
-
Constructor Details
-
Threats
public Threats()
-
-
Method Details
-
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
-