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
|
#ifndef CONSTANTES_H
#define CONSTANTES_H
#define JOUER 0
#define OPTIONS 1
#define QUITTER 2
#define XWIN 1024
#define YWIN 768
enum character_class_t {
CLASS_INVAL = -1,
CLASS_PALADIN,
CLASS_PRIEST,
CLASS_THIEF,
/* XXX add new ally classes here
* ->
*/
CLASS_ALLY_CNT,
CLASS_WARRIOR_GOBELIN = CLASS_ALLY_CNT,
/* XXX add new enemy classes here
* ->
*/
CLASS_CNT,
CLASS_ENEMY_CNT = CLASS_CNT - CLASS_ALLY_CNT,
};
#define MORT 0
enum element_t {
ELEMENT_FIRE,
ELEMENT_ICE,
ELEMENT_WATER,
ELEMENT_THUNDER,
ELEMENT_COUNT,
ELEMENT_NONE = ELEMENT_COUNT,
};
enum affinity_t {
AFFINITY_ABSORPTION,
AFFINITY_INVULNERABILITY,
AFFINITY_RESISTANCE,
AFFINITY_NONE,
AFFINITY_SENSITIVE,
AFFINITY_COUNT,
};
#define POTION 0
#define ETHER 1
#define POTIONPLUS 2
#define ETHERPLUS 3
#define ALLIE 1
#define ENNEMI 0
enum damages_type_t {
DAMAGES_PHYSICAL,
DAMAGES_MAGICAL,
};
enum action_state_t {
ACTION_PERFORMED,
ACTION_CANCELED,
ACTION_ERROR,
ACTION_COUNT,
};
//map
#define SOL 0
#define MUR 1
#define COFFRE 2
#define GUS 3
#define countof(_array) ((int)(sizeof((_array)) / sizeof((_array)[0])))
#include <stdbool.h>
#define inverse_boolean(_b) ((_b) = (((_b)) ? false : true))
#endif
|