Testing some UI interactions.
This commit is contained in:
@ -35,6 +35,15 @@ typedef struct {
|
||||
*/
|
||||
pokerturn_t pokerTurnGet(poker_t *poker, uint8_t playerIndex);
|
||||
|
||||
/**
|
||||
* Return a turn action for the given player to fold.
|
||||
*
|
||||
* @param poker Poker game instance.
|
||||
* @param player Player index.
|
||||
* @return A turn for a fold action.
|
||||
*/
|
||||
pokerturn_t pokerTurnFold(poker_t *poker, uint8_t player);
|
||||
|
||||
/**
|
||||
* Perform the turn's action.
|
||||
*
|
||||
@ -42,4 +51,14 @@ pokerturn_t pokerTurnGet(poker_t *poker, uint8_t playerIndex);
|
||||
* @param player Player instance.
|
||||
* @param turn Turn to action.
|
||||
*/
|
||||
void pokerTurnAction(poker_t *poker, pokerplayer_t *player, pokerturn_t *turn);
|
||||
void pokerTurnAction(poker_t *poker, pokerplayer_t *player, pokerturn_t *turn);
|
||||
|
||||
/**
|
||||
* Determine whether or not a player CAN check, given the current max bet and
|
||||
* the players current bet.
|
||||
*
|
||||
* @param poker Poker game instance.
|
||||
* @param playerIndex Poker player index.
|
||||
* @return True if the player can check, false if they need to call first.
|
||||
*/
|
||||
bool pokerTurnCanPlayerCheck(poker_t *poker, uint8_t playerIndex);
|
Reference in New Issue
Block a user