Roulette 1.0
Roulette game template
Loading...
Searching...
No Matches
GBTemplates.Roulette.RoulleteWallet Class Reference

The roullete wallet. More...

Public Member Functions

void Init (Roulette app)
 Inits the wallet.
 
RoulleteWallet ClearRound ()
 Called when the round is over, reset all vars.
 
RoulleteWallet OnBetWin (int amount)
 It is called when a bet is won.
 
RoulleteWallet LoseBet (int amount)
 It is called when a bet is lost.
 
bool HaveEnghoutFonds (int chipValue)
 
void AddBet (int chipValue)
 Called when a bet is added to the table.
 
void RemoveBet (int chipValue)
 Called when a bet is removed from the table.
 
void AddFounds (int amount)
 Called when funds are added to the wallet.
 
void RemoveFounds (int amount)
 Called when funds are removed from the wallet.
 

Public Attributes

TMPro.TextMeshProUGUI text
 
int founds = 1000
 

Properties

int availableFunds [get]
 Gets the available funds.
 
int currentBetFunds [get]
 Gets the current bet funds.
 
int loseBet [get]
 Gets the lose bet.
 
int winBet [get]
 Gets the win bet.
 

Detailed Description

The roullete wallet.

Member Function Documentation

◆ AddBet()

void GBTemplates.Roulette.RoulleteWallet.AddBet ( int  chipValue)

Called when a bet is added to the table.

Parameters
chipValue

◆ AddFounds()

void GBTemplates.Roulette.RoulleteWallet.AddFounds ( int  amount)

Called when funds are added to the wallet.

Parameters
amount

◆ ClearRound()

RoulleteWallet GBTemplates.Roulette.RoulleteWallet.ClearRound ( )

Called when the round is over, reset all vars.

Returns

◆ Init()

void GBTemplates.Roulette.RoulleteWallet.Init ( Roulette  app)

Inits the wallet.

Parameters
appThe app.

◆ LoseBet()

RoulleteWallet GBTemplates.Roulette.RoulleteWallet.LoseBet ( int  amount)

It is called when a bet is lost.

Parameters
amount
Returns

◆ OnBetWin()

RoulleteWallet GBTemplates.Roulette.RoulleteWallet.OnBetWin ( int  amount)

It is called when a bet is won.

Parameters
amount
Returns

◆ RemoveBet()

void GBTemplates.Roulette.RoulleteWallet.RemoveBet ( int  chipValue)

Called when a bet is removed from the table.

Parameters
chipValue

◆ RemoveFounds()

void GBTemplates.Roulette.RoulleteWallet.RemoveFounds ( int  amount)

Called when funds are removed from the wallet.

Parameters
amount

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