GameBuilder

model.entities.games.GameBuilder
object GameBuilder

Factory object for creating game instances with default configurations.

Provides convenient methods to create games with auto-generated IDs and appropriate default settings for player capacity and initial state.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def blackjack(position: Vector2D): BlackJackGame

Creates a new blackjack game at the specified position.

Creates a new blackjack game at the specified position.

Initializes with capacity for 7 players and empty history.

Value parameters

position

the 2D coordinates for the game

Attributes

Returns

a new BlackJackGame instance

def roulette(position: Vector2D): RouletteGame

Creates a new roulette game at the specified position.

Creates a new roulette game at the specified position.

Initializes with capacity for 6 players and empty history.

Value parameters

position

the 2D coordinates for the game

Attributes

Returns

a new RouletteGame instance

def slot(position: Vector2D): SlotMachineGame

Creates a new slot machine game at the specified position.

Creates a new slot machine game at the specified position.

Initializes with capacity for 1 player and empty history.

Value parameters

position

the 2D coordinates for the game

Attributes

Returns

a new SlotMachineGame instance