Added a dynamic array.

This commit is contained in:
2021-09-05 00:34:29 -07:00
parent c0d13042b4
commit cb447a6033
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

View File

@ -8,6 +8,9 @@
#pragma once
#include "../../../libs.h"
#include "../../../ui/label.h"
#include "../../../ui/image.h"
#include "../../../display/framebuffer.h"
#include "../../../display/camera.h"
typedef struct {
label_t label;