Uses of Record Class
dev.twilite.game.simulation.model.threat.SimulationThreat
Packages that use SimulationThreat
Package
Description
-
Uses of SimulationThreat in dev.twilite.game.simulation.model.threat
Methods in dev.twilite.game.simulation.model.threat that return SimulationThreatModifier and TypeMethodDescriptionstatic SimulationThreatCreates a one-tick coordinate threat that is not tied to a specific source id.static SimulationThreatSimulationThreat.at(Coord position, int startTick, int duration, int radius, int penalty, boolean avoid) Creates a coordinate threat that is not tied to a specific source id.static SimulationThreatSimulationThreat.at(SimulationThreatKind kind, int id, Coord position, int startTick, int radius, int penalty, boolean avoid) Creates a one-tick coordinate threat with an explicit source kind and id.static SimulationThreatSimulationThreat.at(SimulationThreatKind kind, int id, Coord position, int startTick, int duration, int radius, int penalty, boolean avoid) Creates a coordinate threat with an explicit source kind and id.static SimulationThreatCreates a one-tick coordinate threat that should be avoided as a final destination.static SimulationThreatCreates a coordinate threat that should be avoided as a final destination.SimulationThreat.Builder.avoid()Builds a threat that should be avoided as a final destination.static SimulationThreatCreates an immediate effect threat at the effect coordinate.static SimulationThreatCreates an immediate effect threat at the effect coordinate.SimulationThreat.Builder.penalize()Builds a threat that penalizes matching nodes without rejecting them as final destinations.static SimulationThreatSimulationThreat.projectile(Projectile projectile, int radius, int penalty, boolean avoid) Creates a timed projectile threat at the projectile target coordinate.static SimulationThreatSimulationThreat.projectile(Projectile projectile, int duration, int radius, int penalty, boolean avoid) Creates a timed projectile threat at the projectile target coordinate. -
Uses of SimulationThreat in dev.twilite.game.simulation.rules.threat
Methods in dev.twilite.game.simulation.rules.threat that return types with arguments of type SimulationThreatModifier and TypeMethodDescriptionFunction<I, ? extends Collection<SimulationThreat>> Threats.Builder.threats()Returns the value of thethreatsrecord component.Method parameters in dev.twilite.game.simulation.rules.threat with type arguments of type SimulationThreatModifier and TypeMethodDescriptionstatic <I> Threats.Builder<I> Threats.from(Function<I, ? extends Collection<SimulationThreat>> threats) Applies timed coordinate threats.Threats.Typed.from(Function<I, ? extends Collection<SimulationThreat>> threats) Applies timed coordinate threats.Constructor parameters in dev.twilite.game.simulation.rules.threat with type arguments of type SimulationThreatModifierConstructorDescriptionBuilder(Function<I, ? extends Collection<SimulationThreat>> threats) Creates an instance of aBuilderrecord class.