StrategyWrapper

model.entities.spawner.SpawningStrategyBuilder.StrategyWrapper
implicit class StrategyWrapper(strategy: SpawningStrategy)

Provides operator overloads for convenient strategy composition.

Enables mathematical operations on SpawningStrategy instances using natural syntax like strategy + 5 or strategy * 2.0.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def *(factor: Double): SpawningStrategy

Multiplies the strategy's output by a scaling factor.

Multiplies the strategy's output by a scaling factor.

Value parameters

factor

the multiplication factor to apply

Attributes

Returns

new strategy with scaling applied

def +(offset: Int): SpawningStrategy

Adds a constant offset to the strategy's output.

Adds a constant offset to the strategy's output.

Value parameters

offset

the number to add to each spawning count

Attributes

Returns

new strategy with offset applied