27 lines
		
	
	
		
			416 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			416 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _HF_GAME_
 | 
						|
#define _HF_GAME_
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
 | 
						|
typedef struct Game Game;
 | 
						|
 | 
						|
#include "card.h"
 | 
						|
 | 
						|
typedef enum GameState {
 | 
						|
  GAME_STATE_INITIALIZING,
 | 
						|
  GAME_STATE_DEALING
 | 
						|
} GameState;
 | 
						|
 | 
						|
struct Game {
 | 
						|
  GameState state;
 | 
						|
  bool should_close;
 | 
						|
  Card cards[48];
 | 
						|
  Texture2D cards_texture;
 | 
						|
  Hand player_hand, left_hand, right_hand, deck;
 | 
						|
};
 | 
						|
 | 
						|
void initialize_game(Game *g);
 | 
						|
void run_until_closing(Game *g);
 | 
						|
 | 
						|
#endif
 |