ItMayBeAHack OOD Exercises
An exercise in OOD as guided by ItMayBeAHack.com.
Public Member Functions | Protected Attributes | Properties | List of all members
Roulette.Player Class Referenceabstract

Abstract contract for all Player subclasses More...

Inheritance diagram for Roulette.Player:
Roulette.Passenger57

Public Member Functions

 Player (Table table, Wheel wheel)
 Constructor More...
 
abstract void PlaceBets ()
 Places the bets on the table. More...
 
abstract void Win (Bet bet)
 Called by Game when the player's bet wins. More...
 
abstract void Lose (Bet bet)
 Called by Game when the player's bet loses. More...
 

Protected Attributes

Table table
 The table the bets will be placed on. More...
 
Wheel wheel
 The wheel that will provide the available outcomes for the player's strategy. More...
 

Properties

abstract Outcome focusedOutcome [get]
 The outcome the player will bet on based on the player's strategey More...
 

Detailed Description

Abstract contract for all Player subclasses

Constructor & Destructor Documentation

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

Constructor

Parameters
tableRequired
wheelRequired

Member Function Documentation

abstract void Roulette.Player.Lose ( Bet  bet)
pure virtual

Called by Game when the player's bet loses.

Parameters
betThe losing bet.

Implemented in Roulette.Passenger57.

abstract void Roulette.Player.PlaceBets ( )
pure virtual

Places the bets on the table.

Implemented in Roulette.Passenger57.

abstract void Roulette.Player.Win ( Bet  bet)
pure virtual

Called by Game when the player's bet wins.

Parameters
betThe winning bet.

Implemented in Roulette.Passenger57.

Member Data Documentation

Table Roulette.Player.table
protected

The table the bets will be placed on.

Wheel Roulette.Player.wheel
protected

The wheel that will provide the available outcomes for the player's strategy.

Property Documentation

abstract Outcome Roulette.Player.focusedOutcome
get

The outcome the player will bet on based on the player's strategey


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