#ifndef _HF_CARD_ #define _HF_CARD_ #include #include typedef struct Card Card; typedef struct Hand Hand; #define CARD_WIDTH 63 #define CARD_HEIGHT 105 #define CARD_BORDER 5 static Vector2 card_size = (Vector2) { CARD_WIDTH, CARD_HEIGHT }; typedef enum CardType { CHAFF, RIBBON, ANIMAL, BRIGHT, } CardType; typedef enum RibbonType { RIBBON_NONE, RIBBON_PLAIN, RIBBON_BLUE, RIBBON_POETRY, } RibbonType; typedef enum Month { JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER } Month; static char *month_english_abbr[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; struct Card { int index; CardType type; RibbonType ribbon_type; Month month; Vector2 position; bool selected; }; struct Hand { Card cards[7]; int count; }; void draw_card(Card *c); #endif