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

An implementation of the Player class that always bets on black. More...

Inheritance diagram for Roulette.Passenger57:
Roulette.Player

Public Member Functions

delegate void OnResult (Bet bet)
 
 Passenger57 (Table table, Wheel wheel)
 
override void Lose (Bet bet)
 Called by Game when the player's bet loses. More...
 
override void PlaceBets ()
 Places a bet on focusedOutcome with a random amount between the table minimum and limit. More...
 
override void Win (Bet bet)
 Called by Game when the player's bet wins. More...
 
- Public Member Functions inherited from Roulette.Player
 Player (Table table, Wheel wheel)
 Constructor More...
 

Public Attributes

OnResult OnLose
 
OnResult OnWin
 

Properties

override Outcome focusedOutcome [get]
 
- Properties inherited from Roulette.Player
abstract Outcome focusedOutcome [get]
 The outcome the player will bet on based on the player's strategey More...
 

Additional Inherited Members

- Protected Attributes inherited from Roulette.Player
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...
 

Detailed Description

An implementation of the Player class that always bets on black.

Constructor & Destructor Documentation

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

Member Function Documentation

override void Roulette.Passenger57.Lose ( Bet  bet)
virtual

Called by Game when the player's bet loses.

Parameters
betThe losing bet.

Implements Roulette.Player.

delegate void Roulette.Passenger57.OnResult ( Bet  bet)
override void Roulette.Passenger57.PlaceBets ( )
virtual

Places a bet on focusedOutcome with a random amount between the table minimum and limit.

Implements Roulette.Player.

override void Roulette.Passenger57.Win ( Bet  bet)
virtual

Called by Game when the player's bet wins.

Parameters
betThe winning bet.

Implements Roulette.Player.

Member Data Documentation

OnResult Roulette.Passenger57.OnLose
OnResult Roulette.Passenger57.OnWin

Property Documentation

override Outcome Roulette.Passenger57.focusedOutcome
get

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