peer working TP dev lundi 11 décembre

This commit is contained in:
stiti
2023-12-11 18:40:04 +01:00
parent 30e54e4cd8
commit 909d4bfb7b
10 changed files with 69 additions and 131 deletions

View File

@@ -1,17 +0,0 @@
#ifndef OBSTACLE_H
#define OBSTACLE_H
#include "../include/grille.h"
#include "../include/serpent.h"
typedef struct {
int x;
int y;
} Obstacle;
void dessinerObstacle(Obstacle obstacle);
int estCollisionObstacle(Obstacle obstacle, Segment serpent[], int longueur);
Obstacle creerObstacle(int largeurGrille, int hauteurGrille);
void placerObstacle(Obstacle obstacles[], int nombreObstacles, int largeurGrille, int hauteurGrille);
#endif /*OBSTACLE_H*/

View File

@@ -10,7 +10,7 @@ typedef struct {
} Pomme;
Pomme creerPomme();
void dessinerPomme(Pomme pomme);
void dessinerPomme(Pomme pomme,int id_pomme);
int verifierCollisionPommeSerpent(Pomme pomme, Segment serpent[], int longueur);
#endif /*POMME_H*/