working on some render tools
This commit is contained in:
@ -34,6 +34,11 @@
|
||||
#define HOLDEM_GAME_CARD_HEIGHT 0.07
|
||||
#define HOLDEM_GAME_CARD_DEPTH 0.001
|
||||
|
||||
/** How many actions the queue can hold */
|
||||
#define HOLDEM_GAME_ACTION_QUEUE_SIZE 12
|
||||
|
||||
/** How much data (in length of sizeof size_t) each action has available */
|
||||
#define HOLDEM_GAME_ACTION_DATA_SIZE 256
|
||||
|
||||
/** Texas Hold'em Player State */
|
||||
typedef struct {
|
||||
@ -74,6 +79,16 @@ typedef struct {
|
||||
holdemplayer_t players[HOLDEM_PLAYER_COUNT];
|
||||
} holdemmatch_t;
|
||||
|
||||
/** Callback for actions to use */
|
||||
typedef void (*holdemActionCallback)(int32_t index, void *data);
|
||||
|
||||
/** Texas Hold'em Game action that can be queued and executed */
|
||||
typedef struct {
|
||||
holdemActionCallback init;
|
||||
holdemActionCallback update;
|
||||
holdemActionCallback dispose;
|
||||
} holdemaction_t;
|
||||
|
||||
typedef struct {
|
||||
holdemmatch_t match;
|
||||
|
||||
@ -81,6 +96,11 @@ typedef struct {
|
||||
tileset_t *kagamiTileset;
|
||||
primitive_t *kagamiQuad;
|
||||
|
||||
/** Action and Allocated Data Space */
|
||||
holdemaction_t actionQueue[HOLDEM_GAME_ACTION_QUEUE_SIZE];
|
||||
void *actionData[HOLDEM_GAME_ACTION_DATA_SIZE*HOLDEM_GAME_ACTION_QUEUE_SIZE];
|
||||
|
||||
/** Poker Table */
|
||||
primitive_t *tablePrimitive;
|
||||
texture_t *tableTexture;
|
||||
|
||||
|
Reference in New Issue
Block a user