-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.h
More file actions
102 lines (78 loc) · 1.35 KB
/
constants.h
File metadata and controls
102 lines (78 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* constants.h */
#ifndef CONSTANTS_H
#define CONSTANTS_H
#include <stdbool.h>
#define NUM_PLAYERS 3
#define NUM_LIGHT_CARDS 17
#define TOTAL_CARDS 57
#define NUM_BASIC_SUITS 5
#define MAX_HAUL TOTAL_CARDS
#define TOWER_WIDTH 5
#define TOWER_HEIGHT 8
#define TOTAL_ROOMS TOWER_HEIGHT * TOWER_WIDTH
typedef enum
{
MOST_POTIONS,
MOST_FOSSILS,
MOST_ARTIFACTS,
MOST_JEWELS,
MOST_TOMES,
MOST_THREES,
MOST_FOURS,
MOST_FIVES,
FIRST_EXIT,
SECOND_EXIT,
LAST_EXIT,
MOST_CURSES,
FEWEST_CURSES,
NUM_SCORING_TILES
} score_t;
typedef enum
{
POTION,
FOSSIL,
ARTIFACT,
JEWEL,
TOME,
WILD,
NO_SUIT
} suit_t;
typedef enum
{
THREES,
FOURS,
FIVES,
NUM_VALUES
} value_t;
typedef enum
{
LOVE_POTION_8,
POTION_OF_STRENGTH,
GREATER_POTION_OF_HEALING,
SUNSTONE_PHOENIX_FEATHER,
GIBBONS_PAW,
DRAGON_SKULL,
SPRIG_OF_THE_DAWN_TREE,
THE_ANGELIC_COMPASS,
SILVER_IDOL_OF_HUN_BATZ,
THE_EYE_OF_VALA,
HEART_OF_ETERNITY,
STONE_OF_KINGS,
ORIONS_BESTIARY,
FLAMELS_FORMULAS,
BOOK_OF_SPELLS,
CELESTIAL_TAROT,
INFERNAL_TAROT,
/* The end of the list of light cards. */
} card_index_t;
typedef enum
{
PLAYER_1,
PLAYER_2,
PLAYER_3,
PLAYER_4,
PLAYER_5,
MAX_PLAYERS,
NO_PLAYER
} player_ID_t;
#endif