Responsible for representing the various Outcomes for the Roulette game. Each Outcome is comparable by its name.
More...
Responsible for representing the various Outcomes for the Roulette game. Each Outcome is comparable by its name.
| Roulette.Outcome.Outcome |
( |
string |
name, |
|
|
ushort |
odds |
|
) |
| |
Constructions a new outcome.
- Parameters
-
| name | Unique name. |
| odds | The payout odds. |
| override bool Roulette.Outcome.Equals |
( |
object |
obj | ) |
|
| override int Roulette.Outcome.GetHashCode |
( |
| ) |
|
| int Roulette.Outcome.GetWinAmount |
( |
ushort |
amount | ) |
|
Returns the payout amount based on the odds.
- Parameters
-
| amount | The amount of the bet. |
- Returns
- The payout amount.
| override string Roulette.Outcome.ToString |
( |
| ) |
|
- Returns
- User friendly string representation of this object.
| string Roulette.Outcome.name |
|
get |
| ushort Roulette.Outcome.odds |
|
get |
The documentation for this class was generated from the following file:
- E:/@Documents/My Open Source Repos/ItMayBeAHackOOD/Assets/01_Roulette/Outcome.cs