Ajout de serpent.h
This commit is contained in:
parent
9da1d232b2
commit
7198c48b7f
16
include/serpent.h
Normal file
16
include/serpent.h
Normal file
@ -0,0 +1,16 @@
|
||||
#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);
|
||||
int tuerSerpent(Segment serpent[]);
|
||||
void mettreAJourSerpent(Segment serpent[], int *longueur, int *direction_x, int *direction_y);
|
||||
void dessinerSerpent(Segment serpent[], int *longueur);
|
||||
int seMangerQueue(Segment serpent[], int longueur);
|
||||
|
||||
#endif /*SERPENT_H*/
|
Loading…
Reference in New Issue
Block a user