Cleaned some of the betting code.
This commit is contained in:
@ -37,6 +37,24 @@ void pokerBetPlayer(poker_t *poker, pokerplayer_t *player, int32_t chips);
|
||||
*/
|
||||
void pokerBetResetBetter(poker_t *poker);
|
||||
|
||||
/**
|
||||
* Returns whether or not a player can bet for the current round.
|
||||
*
|
||||
* @param bet Game bet state.
|
||||
* @param player Player to check.
|
||||
* @return True if the player can bet, otherwise false.
|
||||
*/
|
||||
bool pokerBetPlayerCanBet(pokerbet_t *bet, pokerplayer_t *player);
|
||||
|
||||
/**
|
||||
* Returns the index of the first player that remains to bet for the current
|
||||
* round.
|
||||
*
|
||||
* @param poker Poker instance to fetch from.
|
||||
* @return The player index of the remaining player, otherwise 0xFF.
|
||||
*/
|
||||
uint8_t pokerBetGetRemainingPlayer(poker_t *poker);
|
||||
|
||||
/**
|
||||
* Takes the current blinds from the correct players.
|
||||
*
|
||||
|
Reference in New Issue
Block a user