2023-12-05 21:41:28 +01:00
|
|
|
#ifndef SERPENT_H
|
|
|
|
#define SERPENT_H
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int x, y;
|
|
|
|
} Segment;
|
|
|
|
|
|
|
|
void initialiserSerpent(Segment serpent[], int *longueur);
|
|
|
|
void gestionDeplacements(Segment serpent[], int *direction_x, int *direction_y);
|
2023-12-06 22:32:08 +01:00
|
|
|
int tuerSerpent(Segment serpent[], int longueur);
|
2023-12-05 21:41:28 +01:00
|
|
|
void mettreAJourSerpent(Segment serpent[], int *longueur, int *direction_x, int *direction_y);
|
|
|
|
void dessinerSerpent(Segment serpent[], int *longueur);
|
|
|
|
int seMangerQueue(Segment serpent[], int longueur);
|
2023-12-09 21:43:13 +01:00
|
|
|
void attendreSerpent(unsigned long int microseconds);
|
2023-12-05 21:41:28 +01:00
|
|
|
|
|
|
|
#endif /*SERPENT_H*/
|