Class AreaThreats
java.lang.Object
dev.twilite.game.simulation.rules.threat.AreaThreats
Factory methods for timed rectangular area threats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBuilder for timed rectangular area threat tasks.static classTyped area threat task factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> AreaThreats.Builder<I> from(Function<I, ? extends Collection<SimulationAreaThreat>> threats) Applies timed rectangular area threats.static <I> AreaThreats.Typed<I> typed()Creates a typed area threat task factory.
-
Constructor Details
-
AreaThreats
public AreaThreats()
-
-
Method Details
-
typed
Creates a typed area threat task factory.- Type Parameters:
I- plugin-defined input for each run
-
from
public static <I> AreaThreats.Builder<I> from(Function<I, ? extends Collection<SimulationAreaThreat>> threats) Applies timed rectangular area threats.- Type Parameters:
I- plugin-defined input for each run- Parameters:
threats- function that supplies area threats for the current input
-