Skip to content
Snippets Groups Projects
Commit ac2b0c85 authored by Romain Jegat's avatar Romain Jegat
Browse files

Mise à jour de structures.h

parent 53207b43
No related branches found
No related tags found
No related merge requests found
......@@ -3,69 +3,87 @@
#define TAILLE_MAX_CARTE 256
#define TAILLE_NOMS 16
/* definition des structures ncessaires : case, classe, etc */
typedef char* type_nom;
/* definition des structures ncessaires */
/* SOMMAIRE */
/* Type_terrain */
/* Case */
/* Attaque */
/* Classe */
/* Personnage */
/* Effet */
/* Competence */
typedef enum {faux, vrai} boolean;
typedef struct {
type_nom nom;
char nom[TAILLE_NOMS];
boolean franchissable;
boolean franchissable_sorts;
unsigned short int PD_requis;
} type_terrain;
}Type_terrain;
typedef struct {
typedef struct Case{
unsigned short int coord_x;
unsigned short int coord_y;
type_terrain *terrain;
Type_terrain *terrain;
boolean occupee;
boolean surbrillance;
} Case;
typedef Case carte[TAILLE_MAX_CARTE];
typedef struct {
type_nom nom;
char nom[TAILLE_NOMS];
unsigned short int degats_directs;
unsigned short int degats_permanents;
boolean paralysie;
} attaque;
unsigned short int portee;
Effet effets[];
} Attaque;
typedef struct {
type_nom nom;
attaque* attaques;
char nom[TAILLE_NOMS];
Attaque* attaques;
unsigned short int points_deplacement_max;
unsigned short int PV_max;
unsigned short int mana_max;
} classe;
} Classe;
typedef struct {
type_nom nom;
classe classe;
char nom[TAILLE_NOMS];
Classe classe;
unsigned short int points_deplacement;
unsigned short int PV;
unsigned short int mana;
boolean paralyse;
Case *position;
} personnage;
Effet effets[];
} Personnage;
typedef struct {
unsigned int nb_tours_restants;
unsigned int valeur_degats_duree;
unsigned int valeur_soin_duree;
boolean paralysie;
} Effet;
typedef struct competence{
unsigned short int id;
type_nom nom;
char nom[TAILLE_NOMS];
unsigned short int etage;
struct competence *parent;
struct competence *enfant_gauche;
struct competence *enfant_droit;
struct effet_competence *effet;
boolean connu;
}competence;
}Competence;
typedef struct effet_competence{
unsigned short int id;
type_nom nom;
char nom[TAILLE_NOMS];
/* effets dfinir */
}effet_competence;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment