2023-12-06 22:32:08 +01:00
|
|
|
#ifndef POMME_H
|
|
|
|
#define POMME_H
|
|
|
|
|
|
|
|
#include "../include/grille.h"
|
|
|
|
#include "../include/serpent.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
} Pomme;
|
|
|
|
|
|
|
|
Pomme creerPomme();
|
2023-12-11 18:40:04 +01:00
|
|
|
void dessinerPomme(Pomme pomme,int id_pomme);
|
2023-12-06 22:32:08 +01:00
|
|
|
int verifierCollisionPommeSerpent(Pomme pomme, Segment serpent[], int longueur);
|
|
|
|
|
|
|
|
#endif /*POMME_H*/
|