ItMayBeAHack OOD Exercises
An exercise in OOD as guided by ItMayBeAHack.com.
Public Member Functions | Properties | List of all members
Roulette.Game Class Reference

Responsible for placing the player's bets, selecting a winning bin, and resolving the bets. More...

Public Member Functions

 Game (Wheel wheel, Table table)
 Constructor More...
 
void Cycle (Player player)
 Runs the game simulation. Places player's bets, gets a random bin, validates the table's bets, resolves the bets, and clears the bets from the table. More...
 

Properties

Wheel wheel [get]
 The game's wheel. More...
 
Table table [get]
 The game's table. More...
 

Detailed Description

Responsible for placing the player's bets, selecting a winning bin, and resolving the bets.

Constructor & Destructor Documentation

Roulette.Game.Game ( Wheel  wheel,
Table  table 
)

Constructor

Parameters
wheelrequired
tablerequired

Member Function Documentation

void Roulette.Game.Cycle ( Player  player)

Runs the game simulation. Places player's bets, gets a random bin, validates the table's bets, resolves the bets, and clears the bets from the table.

Parameters
playerThe player who will be placing bets.

Property Documentation

Table Roulette.Game.table
get

The game's table.

Wheel Roulette.Game.wheel
get

The game's wheel.


The documentation for this class was generated from the following file: