diff --git a/include/serpent.h b/include/serpent.h index f916226..7a48d62 100644 --- a/include/serpent.h +++ b/include/serpent.h @@ -7,7 +7,7 @@ typedef struct { typedef Segment* Serpent; void initialiserSerpent(Serpent serpent, int *longueur); -int gestionDeplacements(Serpent serpent, int *direction_x, int *direction_y); +int gestionTouches(Serpent serpent, int *direction_x, int *direction_y); int tuerSerpent(Serpent serpent, int longueur); void mettreAJourSerpent(Serpent serpent, int *longueur, int *direction_x, int *direction_y); void dessinerSerpent(Serpent serpent, int *longueur,int id_tete); diff --git a/src/jeu.c b/src/jeu.c index ea23744..043b7dc 100644 --- a/src/jeu.c +++ b/src/jeu.c @@ -53,7 +53,7 @@ void jouer(int nbPommes, unsigned long int vitesse,int acceleration) { /*fa } while (1) { - esc = gestionDeplacements(serpent, &direction_x, &direction_y); + esc = gestionTouches(serpent, &direction_x, &direction_y); if (esc == 1) { return; } diff --git a/src/serpent.c b/src/serpent.c index 7b8802b..f75e8b0 100644 --- a/src/serpent.c +++ b/src/serpent.c @@ -20,7 +20,7 @@ void initialiserSerpent(Serpent serpent, int *longueur) { *longueur = 10; } -int gestionDeplacements(Serpent serpent, int *direction_x, int *direction_y) { +int gestionTouches(Serpent serpent, int *direction_x, int *direction_y) { int touche; if (ToucheEnAttente()) { touche = Touche();