Class Blocked
java.lang.Object
dev.twilite.game.simulation.rules.blocking.Blocked
Factory methods for blocking coordinates or areas during simulation expansion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> SimulationTask<I> areas(Function<I, ? extends Collection<Rect>> areas) Blocks every node contained by any supplied area before path expansion.static <I> SimulationTask<I> coordinates(Function<I, ? extends Collection<Coord>> coordinates) Blocks static coordinates before path expansion.
-
Constructor Details
-
Blocked
public Blocked()
-
-
Method Details
-
coordinates
public static <I> SimulationTask<I> coordinates(Function<I, ? extends Collection<Coord>> coordinates) Blocks static coordinates before path expansion.- Type Parameters:
I- plugin-defined input for each run- Parameters:
coordinates- function that supplies blocked coordinates for the current input
-
areas
Blocks every node contained by any supplied area before path expansion.- Type Parameters:
I- plugin-defined input for each run- Parameters:
areas- function that supplies blocked areas for the current input
-