Added a dynamic array.

This commit is contained in:
2021-09-05 00:34:29 -07:00
parent ee9334478f
commit d43c582629
20 changed files with 403 additions and 25 deletions

View File

@ -22,6 +22,17 @@
#define POKER_GAME_SEAT_FOR_PLAYER(p) (p - (POKER_PLAYER_COUNT/2))
#define POKER_GAME_SEAT_DEALER POKER_GAME_SEAT_FOR_PLAYER(POKER_DEALER_INDEX)
/**
* Return the seat for a given player index, also works for the dealer index.
* @param i The players index.
* @return The players seat number.
*/
#define pokerGameSeatFromIndex(i) (\
i == POKER_DEALER_INDEX ? \
POKER_GAME_SEAT_DEALER : \
POKER_GAME_SEAT_FOR_PLAYER(i) \
)
#define POKER_GAME_PENNY_BASE_WIDTH 1000
#define POKER_GAME_PENNY_BASE_HEIGHT 1920
#define POKER_GAME_PENNY_FACE_X 367