C# Class twdtf_craps.Classes.CrapsRoller

Mostra file Open project: RemyPorter/TDWTF-BYOC-Casino Class Usage Examples

Public Methods

Method Description
AddDice ( List faceNums ) : void
AddDie ( int faces ) : void
ComesOut ( int roll ) : bool

Does the roll "come out"?

CrapsRoller ( int numDice, int faces ) : System
DontPassBetResult ( int roll ) : bool?

How does a Don't Pass bet fare?

PassBetResult ( int roll ) : bool

Does a Pass bet win?

Probability ( List values ) : decimal
Roll ( ) : int

Roll the dice. Update the state based on the roll.

Private Methods

Method Description
BuildReport ( ) : void
GenerateOdds ( ) : void
Setup ( ) : void
SumDieEnumerators ( ) : int

Method Details

AddDice() public method

public AddDice ( List faceNums ) : void
faceNums List
return void

AddDie() public method

public AddDie ( int faces ) : void
faces int
return void

ComesOut() public method

Does the roll "come out"?
public ComesOut ( int roll ) : bool
roll int
return bool

CrapsRoller() public method

public CrapsRoller ( int numDice, int faces ) : System
numDice int
faces int
return System

DontPassBetResult() public method

How does a Don't Pass bet fare?
public DontPassBetResult ( int roll ) : bool?
roll int
return bool?

PassBetResult() public method

Does a Pass bet win?
public PassBetResult ( int roll ) : bool
roll int
return bool

Probability() public method

public Probability ( List values ) : decimal
values List
return decimal

Roll() public method

Roll the dice. Update the state based on the roll.
public Roll ( ) : int
return int