Shuffled game_t struct

This commit is contained in:
2021-05-17 09:06:47 -07:00
parent e864502f6a
commit e2274ea8bf

View File

@ -22,47 +22,34 @@
/** Describes the current game */ /** Describes the current game */
typedef struct { typedef struct {
/** Describes the name of the specific game. */
char *name; char *name;
/** World Rendering stuff. */
shader_t *shaderWorld;
camera_t cameraMain;
/** Current Card Deck */ /** Current Card Deck */
card_t deck[CARD_DECK_SIZE]; card_t deck[CARD_DECK_SIZE];
/** Count of cards in the deck */
uint8_t deckSize; uint8_t deckSize;
/** How big is the current small blind */ /** Dealer Money */
uint32_t blindSmall; uint32_t blindSmall;
/** How big is the current big blind */
uint32_t blindBig; uint32_t blindBig;
/** Current round pot */
uint32_t pot; uint32_t pot;
/** Cards that have been dealt */ /** Dealer Hand */
card_t cards[HOLDEM_DEALER_HAND]; card_t cards[HOLDEM_DEALER_HAND];
/** How many dealt cards are face up */
uint8_t cardsFacing; uint8_t cardsFacing;
/** Player States */ /** Player States */
pokerplayer_t players[POKER_PLAYER_COUNT]; pokerplayer_t players[POKER_PLAYER_COUNT];
/** Action Queue */
texture_t *kagamiTexture;
tileset_t *kagamiTileset;
primitive_t *kagamiQuad;
/** Action and Allocated Data Space */
pokeraction_t actionQueue[POKER_ACTION_QUEUE_SIZE]; pokeraction_t actionQueue[POKER_ACTION_QUEUE_SIZE];
void *actionData[POKER_ACTION_DATA_SIZE*POKER_ACTION_QUEUE_SIZE]; void *actionData[POKER_ACTION_DATA_SIZE*POKER_ACTION_QUEUE_SIZE];
bool actionInitState[POKER_ACTION_DATA_SIZE]; bool actionInitState[POKER_ACTION_DATA_SIZE];
/** Poker Table */ /** Rendering Assets */
texture_t *kagamiTexture;
tileset_t *kagamiTileset;
primitive_t *kagamiQuad;
primitive_t *tablePrimitive; primitive_t *tablePrimitive;
texture_t *tableTexture; texture_t *tableTexture;
@ -74,11 +61,12 @@ typedef struct {
tileset_t *fontTileset; tileset_t *fontTileset;
spritebatch_t *fontBatch; spritebatch_t *fontBatch;
/** Game Render Frames */ shader_t *shaderWorld;
framebuffer_t *frameLeft; framebuffer_t *frameLeft;
framebuffer_t *frameRight; framebuffer_t *frameRight;
primitive_t *quadLeft; primitive_t *quadLeft;
primitive_t *quadRight; primitive_t *quadRight;
camera_t cameraMain;
camera_t cameraLeft; camera_t cameraLeft;
camera_t cameraRight; camera_t cameraRight;
} game_t; } game_t;