Skip to content
Snippets Groups Projects
Commit d4d8a87d authored by Montjoie Henri's avatar Montjoie Henri
Browse files

definition des structures

parent 55c7eb6a
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
#include <stdlib.h>
#include "structures.h"
int main()
{
......@@ -7,4 +8,3 @@ int main()
return 0;
}
/*test*/
#ifndef STRUCTURES_H_INCLUDED
#define STRUCTURES_H_INCLUDED
/* definition des structures ncessaires : case, classe, etc */
typedef enum {plaine,eau,montagne,foret} type_terrain;
typedef enum {faux, vrai} boolean;
typedef struct {
unsigned short int coord_x;
unsigned short int coord_y;
type_terrain terrain;
boolean occupee;
} Case;
typedef struct {
char nom[16];
unsigned short int degats_directs;
unsigned short int degats_permanents;
boolean paralysie;
} attaque;
typedef struct {
char nom[16];
attaque attaque;
unsigned short int points_deplacement_max;
unsigned short int PV_max;
} classe;
typedef struct {
char nom[16];
classe classe;
unsigned short int points_deplacement;
unsigned short int PV;
boolean paralyse;
Case position;
} personnage;
#endif
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