Simple Poker Template 0.0.1
|
The GameManager class manages the poker game, including player turns, bets, card distribution, and round progression. More...
Public Types | |
enum | TurnPoker { Ante = 0 , Flop , Turn , River , Winner } |
Public Member Functions | |
void | NextPlayer () |
Moves the game to the next player's turn and checking if it is necessary to change the round. | |
IEnumerator | NextTurnCoroutine () |
Initiates the next turn in the game, updating game state and managing transitions. | |
void | AddChipsToPot (PlayerBase player, int chips) |
Adds chips to the pot made by one of the players. | |
void | SetPlayerEndTurn (PlayerBase player) |
Defines the player who will be responsible for finishing the round of the next poker turn. | |
void | PlayerFold (PlayerBase player) |
Handles a player's folding action. | |
void | PlayerAllIn (PlayerBase player) |
Handles a player going all-in. | |
bool | HasBetInTable () |
Checks if there's a bet in the current round. | |
bool | IsJustOneNotAllIn () |
Checks if there's only one player who hasn't gone all-in yet. | |
Public Attributes | |
int | IncreaseForcedBet = 100 |
int | BetBase |
Protected Member Functions | |
override void | Awake () |
Protected Member Functions inherited from SimplePoker.Singleton< GameManager > | |
override void | Awake () |
Properties | |
Deck | Deck [get] |
TurnPoker | Turn [get] |
int | TurnIndex [get] |
PokerStats | PokerStats [get] |
PokerPotBet | PokerPotBet [get] |
The GameManager class manages the poker game, including player turns, bets, card distribution, and round progression.
It implements the Singleton pattern to ensure a single global instance is accessible.
void SimplePoker.Logic.GameManager.AddChipsToPot | ( | PlayerBase | player, |
int | chips ) |
Adds chips to the pot made by one of the players.
player | The player who added the chips. |
chips | The number of chips to add to the pot. |
|
protected |
bool SimplePoker.Logic.GameManager.HasBetInTable | ( | ) |
Checks if there's a bet in the current round.
bool SimplePoker.Logic.GameManager.IsJustOneNotAllIn | ( | ) |
Checks if there's only one player who hasn't gone all-in yet.
void SimplePoker.Logic.GameManager.NextPlayer | ( | ) |
Moves the game to the next player's turn and checking if it is necessary to change the round.
IEnumerator SimplePoker.Logic.GameManager.NextTurnCoroutine | ( | ) |
Initiates the next turn in the game, updating game state and managing transitions.
void SimplePoker.Logic.GameManager.PlayerAllIn | ( | PlayerBase | player | ) |
Handles a player going all-in.
player | The player going all-in. |
void SimplePoker.Logic.GameManager.PlayerFold | ( | PlayerBase | player | ) |
Handles a player's folding action.
player | The player who folds. |
void SimplePoker.Logic.GameManager.SetPlayerEndTurn | ( | PlayerBase | player | ) |
Defines the player who will be responsible for finishing the round of the next poker turn.
player | The player who finished the next turn. |
int SimplePoker.Logic.GameManager.BetBase |
int SimplePoker.Logic.GameManager.IncreaseForcedBet = 100 |
|
get |
|
get |
|
get |
|
get |
|
get |