-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstats.h
74 lines (64 loc) · 1.31 KB
/
stats.h
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
#ifndef STATS_H
#define STATS_H
#define _NAME_LENGHT 15
#define _NPERSO 20
#define INV_SIZE 100
// stats intelligent
typedef struct perso{
char* nom;
int maxPV;
int armure;
int degat;
int mana;
char** inv;
} perso;
// stats intelligent
typedef struct intel{
const char* nom;
int maxPV;
int armure;
int degat;
int mana;
} intel;
// stats semi semi
typedef struct semi{
const char* nom;
int maxPV;
int armure;
int degat;
} semi;
// stats semi idiot
typedef struct idiot{
const char* nom;
int maxPV;
int degat;
} idiot;
// mobs intel
static intel intel_mobs[] = {
/* nom pv armure attaque mana*/
{"golblin", 5, 5, 5, 5},
{"cyclope", 15, 10, 10, 2},
{"elf", 10, 8, 10, 10},
{"griffon", 10, 8, 9, 11},
// ajouter
{0,0,0,0,0},
};
// mobs semi-intel
static semi semi_mobs[] = {
/* nom pv armure attaque*/
{"chien", 5, 0, 7},
{"loup", 10, 0, 10},
{"vache", 15, 0, 2},
{"cheval", 10, 0, 2},
// ajouter
{0,0,0,0},
};
// mobs 白痴
static idiot idiot_mobs[] = {
/* nom pv attaque*/
{"pain", 5, 7},
{"baguette", 10, 10},
// ajouter
{0,0,0},
};
#endif // STATS_H