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

ajout de fichiers d'affichage. Travail sur les déplacements

parent 1b444eb9
No related branches found
No related tags found
No related merge requests found
#ifndef AFFICHAGE_H_INCLUDED
#define AFFICHAGE_H_INCLUDED
#endif // AFFICHAGE_H_INCLUDED
File added
......@@ -31,3 +31,16 @@ int deplacement_unitaire(personnage *perso,Case *destination){ /*d
printf("déplacement impossible : case non contigue");
return 1;
}
int affichage_deplacements_possibles(personnage *perso, carte *c){ /* Met en surbrillance les cases disponibles pour un déplacement */
int i;
int pd_max_x = get_PD(perso);
int pd_max_y = get_PD(perso);
for(i=0;i<pd_max_x;i++){
if(1!=0)
/* ??? */
}
return 0;
}
File added
File added
File added
......@@ -21,6 +21,7 @@ typedef struct {
unsigned short int coord_y;
type_terrain *terrain;
boolean occupee;
boolean surbrillance;
} Case;
typedef Case carte[TAILLE_MAX_CARTE];
......@@ -58,7 +59,7 @@ typedef struct competence{
struct competence *parent;
struct competence *enfant_gauche;
struct competence *enfant_droit;
struct effet_competence effet;
struct effet_competence *effet;
boolean connu;
}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