Added a dynamic array.
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user