Ticker

model.Ticker
See theTicker companion class
object Ticker

Factory object for creating Ticker instances with various configurations.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Ticker.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(framerate: Double): Ticker

Creates a new Ticker with default intervals and specified framerate.

Creates a new Ticker with default intervals and specified framerate.

Uses default timing intervals suitable for typical casino simulation:

  • Slot machines: 0.2 seconds (fast-paced)
  • Roulette: 1.0 seconds (moderate pace)
  • Blackjack: 0.7 seconds (card dealing speed)
  • Spawning: 0.5 seconds (regular customer arrival)

Value parameters

framerate

the target frames per second for the simulation

Attributes

Returns

new Ticker instance with default intervals

def apply(framerate: Double, slotIntervalSeconds: Double, rouletteIntervalSeconds: Double, blackjackIntervalSeconds: Double, spawnIntervalSeconds: Double): Ticker

Creates a new Ticker with custom intervals for all game types and spawning.

Creates a new Ticker with custom intervals for all game types and spawning.

Allows full customization of timing for different simulation aspects, useful for creating different casino atmospheres or testing scenarios.

Value parameters

blackjackIntervalSeconds

time in seconds between blackjack rounds

framerate

the target frames per second

rouletteIntervalSeconds

time in seconds between roulette rounds

slotIntervalSeconds

time in seconds between slot machine rounds

spawnIntervalSeconds

time in seconds between customer spawning

Attributes

Returns

new Ticker instance with custom intervals