Spawner
model.entities.spawner.Spawner
case class Spawner(id: String, position: Vector2D, strategy: SpawningStrategy) extends Entity
Entity responsible for spawning new customers into the simulation.
The Spawner periodically creates new Customer instances based on its configured spawning strategy and timing parameters. It maintains its own simulation time counter and determines when to spawn customers based on the ticksToSpawn interval.
Spawned customers are created with randomized attributes including position, movement direction, bankroll, and preferred game type to simulate realistic diversity in the casino environment.
Value parameters
- id
-
unique identifier for this spawner instance
- position
-
2D coordinates where customers will be spawned (with random variation)
- strategy
-
the spawning strategy that determines how many customers to create
Attributes
- Graph
-
- Supertypes
Members list
In this article