-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.h
executable file
·90 lines (80 loc) · 1.35 KB
/
structs.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* structs.h
*
* Trabajo práctio especial Programación Imperativa 2010 - 1er cuatrimestre
*
* Grupo:
* Esteban Pintos
* Agustín Scigliano
* Matías De Santi
* */
#ifndef structs_H_
#define structs_H_
typedef struct
{
int inicialRoom; /**Has the position of the inicial room*/
int endRoom; /**Has the position of the end room*/
} importantPointsType;
typedef struct
{
unsigned int seed;
char **visitedRooms;
int *selectedDoors;
int visitedRoomsQty;
int selectedDoorsQty;
} dumpActionsType;
typedef struct
{
int ID;
char * name;
int MinHP;
int MaxHP;
int MinDP;
int MaxDP;
} professionType;
typedef struct
{
int ID;
char *name;
int DP;
int HP;
int actualRoom;
} avatarType;
typedef struct
{
int ID;
char * name;
int MinHP;
int MaxHP;
int HP;
int * MinDP;
int * MaxDP;
} monsterType;
typedef struct
{
char * name;
int destiny;
} doorType;
typedef struct
{
int ID;
char * name;
char * description;
doorType * doors;
/**Has the position of the corresponding enemyID in the enemy's array*/
int * enemysID;
int enemyQty;
int doorQty;
} roomType;
typedef struct
{
importantPointsType importantPoints;
professionType * professions;
dumpActionsType dumpActions;
int professionQty;
monsterType * monsters;
int monstersQty;
roomType * rooms;
int roomsQty;
int *** monsterToProfessionDamage;
} gameDataType;
#endif