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

Responsible for: More...

Public Member Functions

 Table (ushort limit, ushort minimum)
 
void PlaceBet (Bet bet)
 Adds a bet to the table's bet list. More...
 
void ValidateBets ()
 Throws an exception if any bet is invalid. More...
 
override string ToString ()
 Informational string representation of this object. More...
 
string ToStringFriendly ()
 A user-facing representation of this object. More...
 
void ClearBets ()
 

Properties

ushort limit [get]
 
ushort minimum [get]
 
ReadOnlyCollection< BetBets [get]
 The list of bets placed on the table. More...
 

Detailed Description

Responsible for:

Constructor & Destructor Documentation

Roulette.Table.Table ( ushort  limit,
ushort  minimum 
)

Member Function Documentation

void Roulette.Table.ClearBets ( )
void Roulette.Table.PlaceBet ( Bet  bet)

Adds a bet to the table's bet list.

Parameters
betThe bet to be placed.
override string Roulette.Table.ToString ( )

Informational string representation of this object.

Returns
Table's information.
string Roulette.Table.ToStringFriendly ( )

A user-facing representation of this object.

Returns
A user-friendly string.
void Roulette.Table.ValidateBets ( )

Throws an exception if any bet is invalid.

Property Documentation

ReadOnlyCollection<Bet> Roulette.Table.Bets
get

The list of bets placed on the table.

ushort Roulette.Table.limit
get
ushort Roulette.Table.minimum
get

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