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;
|
|
|
|
|
2023-12-13 20:06:15 +01:00
|
|
|
Pomme creerPomme(Serpent serpent, int longueur);
|
2023-12-11 18:40:04 +01:00
|
|
|
void dessinerPomme(Pomme pomme,int id_pomme);
|
2023-12-22 10:36:53 +01:00
|
|
|
int mangerPomme(Serpent serpent[], Pomme pomme);
|
2023-12-06 22:32:08 +01:00
|
|
|
|
|
|
|
#endif /*POMME_H*/
|