30 lines
449 B
C
30 lines
449 B
C
#ifndef _HF_PLAYER_
|
|
#define _HF_PLAYER_
|
|
|
|
typedef struct Player Player;
|
|
typedef enum PlayerSeat {
|
|
PLAYER,
|
|
RIGHT,
|
|
LEFT
|
|
} PlayerSeat;
|
|
|
|
#include "card.h"
|
|
|
|
struct Player {
|
|
PlayerSeat seat;
|
|
char *name;
|
|
Hand hand, scored;
|
|
Teyaku teyaku;
|
|
Dekiyaku dekiyaku;
|
|
DekiyakuAction dekiyaku_action;
|
|
int dekiyaku_score;
|
|
int points;
|
|
int last_round_points;
|
|
char points_string[20];
|
|
char teyaku_string[50];
|
|
bool ai;
|
|
bool dealer;
|
|
};
|
|
|
|
#endif
|