functional basic gameplay

This commit is contained in:
cellos51
2025-06-12 01:44:54 -04:00
parent af27a26cdd
commit 5055c9abc7
3 changed files with 96 additions and 51 deletions
+5
View File
@@ -86,6 +86,7 @@ typedef struct
// Card methods
Card *card_new(u8 suit, u8 rank);
void card_destroy(Card **card);
u8 card_get_value(Card *card);
// CardObject methods
CardObject *card_object_new(Card *card);
@@ -107,6 +108,10 @@ enum HandState hand_get_state(); // This gets the current state of the hand
bool hand_discard(); // This discards the selected cards
bool hand_play(); // This plays the selected cards
// Play functions
enum PlayState play_get_state(); // This gets the current state of the play
Card *play_get_scored_card(); // This gets the card that was scored in the last play
// Deck functions
int deck_get_size(); // This gets the size of the deck
int deck_get_max_size(); // This gets the maximum size of the deck (this doesn't get the array max, it gets the total amount of cards that you have)