Manages the poker pot and bets, including tracking total pot amount, sub-pots for each turn, adding bets, and determining winnings.
More...
Manages the poker pot and bets, including tracking total pot amount, sub-pots for each turn, adding bets, and determining winnings.
◆ PokerPotBet()
SimplePoker.Logic.PokerPotBet.PokerPotBet |
( |
| ) |
|
◆ AddBet()
Adds a bet to the specified turn of the game for the specified player.
- Parameters
-
turnPoker | The turn of the game. |
player | The player placing the bet. |
chips | The number of chips to bet. |
◆ GetHighBetByTurn()
Gets the highest bet amount in the specified turn of the game.
- Parameters
-
turnPoker | The turn of the game. |
- Returns
- The highest bet amount.
◆ GetPlayerBetByTurn()
Gets the bet amount of a player in the specified turn of the turn poker.
- Parameters
-
player | The player to retrieve the bet amount for. |
turnPoker | The turn of the game. |
- Returns
- The bet amount of the player in the specified turn.
◆ GetTotalPot()
int SimplePoker.Logic.PokerPotBet.GetTotalPot |
( |
| ) |
|
Gets the total chips in the pot.
- Returns
- The total chips in the pot.
◆ GetTurnIndex()
Gets the index of the specified turn in the turn poker.
- Parameters
-
turnPoker | The turn of the game. |
- Returns
- The index of the specified turn.
◆ ReturnRemainingChipsToPlayers()
void SimplePoker.Logic.PokerPotBet.ReturnRemainingChipsToPlayers |
( |
| ) |
|
Returns any remaining chips in the pot to the respective players.
◆ WinnerPotChips()
int SimplePoker.Logic.PokerPotBet.WinnerPotChips |
( |
PlayerBase | player | ) |
|
Determines the chips a player has won from the pot and updates the pot accordingly.
- Parameters
-
player | The player to calculate winnings for. |
- Returns
- The total chips won by the player.
◆ SubPotList
List<Pot> SimplePoker.Logic.PokerPotBet.SubPotList |
|
get |
◆ TotalPot
int SimplePoker.Logic.PokerPotBet.TotalPot |
|
get |
The documentation for this class was generated from the following file:
- C:/Users/USER/Documents/Github/Poker Offline AssetStore/Assets/Simple Poker Template/Scripts/Game Scene/Poker Logics/PokerPotBet.cs