blob: b0f5b3b2850a6262648212eb3044ca640fcaa3f4 (
plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
#ifndef STRUCTURES_H
#define STRUCTURES_H
typedef struct surfaces SURFACES;
struct surfaces
{
SDL_Surface *Pecran;
SDL_Surface *Pgobelin;
SDL_Surface *red_warrior_gobelin;
SDL_Surface *Ppaladin;
SDL_Surface *Ppretre;
SDL_Surface *Pvoleur;
SDL_Surface *red_paladin;
SDL_Surface *red_priest;
SDL_Surface *red_thief;
SDL_Surface *Pmenuoptions;
SDL_Surface *Pmenujouer;
SDL_Surface *Pmenuquitter;
/*
* the 3 following structures are actually an image of a menu with
* respectively the text "Paladin", "Pretre" or "Voleur" selected
*/
SDL_Surface *Pchoixpaladin;
SDL_Surface *Pchoixpretre;
SDL_Surface *Pchoixvoleur;
SDL_Surface *Tperso[3];
SDL_Surface *Tennemi[5];
SDL_Surface *Ptextechoixmenu;
SDL_Surface *Pcurseurennemis;
SDL_Surface *Pcurseurallies;
SDL_Surface *Pfondjeu;
SDL_Surface *Pnbdegats;
SDL_Surface *Pcadrecible;
SDL_Surface *Pnomcible;
SDL_Surface *Pactive;
SDL_Surface *Pdesactive;
SDL_Surface *Ppvcible;
SDL_Surface *Ppmcible;
SDL_Surface *Ppvpersos;
SDL_Surface *Ppmpersos;
SDL_Surface *Pcadreactions;
SDL_Surface *Pactionselectionnee;
SDL_Surface *Pactiondesactivee;
SDL_Surface *Pnomactions[3];
SDL_Surface *Pmort;
SDL_Surface *Pquantite[3];
SDL_Surface *Pmap_sol;
SDL_Surface *Pmap_mur;
SDL_Surface *Pmap_coffre;
SDL_Surface *Pmap_perso;
};
typedef struct positions POSITIONS;
struct positions
{
SDL_Rect Vpositionmenu;
SDL_Rect Vpositionmenupaladin;
SDL_Rect Vpositionmenuvoleur;
SDL_Rect Vpositionmenupretre;
SDL_Rect Vpositionpersos[3];
SDL_Rect Vpositionennemis[5];
SDL_Rect Vpositiontextemenu;
SDL_Rect Vpositioncurseurennemis;
SDL_Rect Vpositioncurseurallies;
SDL_Rect Vpositioncadrecible;
SDL_Rect Vpositionnomcible;
SDL_Rect Vpositionactivedesactive[16];
SDL_Rect Vpositionpvcible;
SDL_Rect Vpositionpmcible;
SDL_Rect Vpositioncadreactions;
SDL_Rect Vpositionactionselectionnee[3];
SDL_Rect Vpositionnomactions[3];
SDL_Rect Vpositionmort;
SDL_Rect Vpositiondegats;
SDL_Rect Vpositionpvpersos[3];
SDL_Rect Vpositionpmpersos[3];
SDL_Rect Vpositionquantite[3];
SDL_Rect Vpositionmap_item[15][11];
};
typedef struct ally_t PERSONNAGES;
struct ally_t
{
int nv;
int pv;
int pm;
int magie;
int force;
int defense;
int defensemagique;
int xp;
int etat;
int pvinitiaux;
int pminitiaux;
};
typedef struct enemy_t ENNEMIS;
struct enemy_t
{
int classe;
int pv;
int pm;
int magie;
int force;
int defense;
int defensemagique;
int etat;
int sensibilite[4];
int resistance[4];
int invulnerabilite[4];
int absorbtion[4];
int pvinitiaux;
int pminitiaux;
};
typedef struct objects_t OBJET;
struct objects_t
{
int potions;
int ethers;
int potionsplus;
int ethersplus;
};
#endif
|