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

Contains the information for a bet that a player will place on the table. More...

Public Member Functions

 Bet (ushort amount, Outcome outcome)
 Constructor. More...
 
int GetWinAmount ()
 The amount if the bet is won. More...
 
override string ToString ()
 Informational string representation of this object. More...
 
string ToStringFriendly ()
 A user-facing representation of this object. More...
 

Properties

ushort amount [get]
 The amount of the bet. More...
 
Outcome outcome [get]
 The ooutcome that has been bet upon. More...
 

Detailed Description

Contains the information for a bet that a player will place on the table.

Constructor & Destructor Documentation

Roulette.Bet.Bet ( ushort  amount,
Outcome  outcome 
)

Constructor.

Parameters
amountAmount of the bet.
outcomeThe outcome that is being bet upon.

Member Function Documentation

int Roulette.Bet.GetWinAmount ( )

The amount if the bet is won.

Returns
Winning amount.
override string Roulette.Bet.ToString ( )

Informational string representation of this object.

Returns
bet's information.
string Roulette.Bet.ToStringFriendly ( )

A user-facing representation of this object.

Returns
Nicely formatted string, i.e. "$100 on 0 @ 10:1"

Property Documentation

ushort Roulette.Bet.amount
get

The amount of the bet.

Outcome Roulette.Bet.outcome
get

The ooutcome that has been bet upon.


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