Manages timing and scheduling for different simulation events and game types.
The Ticker provides a centralized timing system that coordinates when different game types should process rounds and when customer spawning should occur. It converts time intervals specified in seconds to tick-based scheduling using the target framerate, ensuring consistent timing regardless of actual frame rates.
Each game type can have its own update frequency, allowing for realistic timing where slot machines might update more frequently than roulette games, which take longer to complete a round in real casinos.
Value parameters
- blackjackInterval
-
time in seconds between blackjack rounds
- currentTick
-
the current simulation tick counter
- rouletteInterval
-
time in seconds between roulette rounds
- slotInterval
-
time in seconds between slot machine rounds
- spawnInterval
-
time in seconds between customer spawning events
- targetFramerate
-
the desired frames per second for the simulation
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any